Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001033/0.001033, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00104/0.00104, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 227.4 MB / 246.3 MB, free: 9.027 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 59.97 kB / 306.4 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07465/0.07578, allocations: 50.54 MB / 356.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01035/0.08616, allocations: 10.86 MB / 367.8 MB, free: 3.258 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.137/0.2231, allocations: 3.643 MB / 371.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001613/0.2248, allocations: 62.97 kB / 371.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001725/0.2265, allocations: 0.7123 MB / 372.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001762/0.2283, allocations: 0.7778 MB / 373 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007014/0.229, allocations: 406.2 kB / 373.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002692/0.2317, allocations: 3.265 MB / 376.6 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002233/0.234, allocations: 2.304 MB / 378.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001413/0.2354, allocations: 1.218 MB / 380.1 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001722/0.2371, allocations: 1.691 MB / 381.8 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003886/0.2375, allocations: 232.1 kB / 382.1 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007752/0.2383, allocations: 345.5 kB / 382.4 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008635/0.2392, allocations: 0.931 MB / 383.3 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001394/0.2406, allocations: 1.523 MB / 384.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003322/0.2439, allocations: 4.724 MB / 389.6 MB, free: 3.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2439, allocations: 0 / 389.6 MB, free: 3.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.2439, allocations: 0.9688 kB / 389.6 MB, free: 3.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.029e-05/0.244, allocations: 0 / 389.6 MB, free: 3.965 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.005481/0.2495, allocations: 3.398 MB / 393 MB, free: 1.637 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.2495, allocations: 9.625 kB / 393 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003714/0.2499, allocations: 367.2 kB / 393.3 MB, free: 1.363 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008329/0.2508, allocations: 353 kB / 393.7 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002402/0.2532, allocations: 1.77 MB / 395.4 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001643/0.2534, allocations: 194.4 kB / 395.6 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003451/0.2537, allocations: 253.8 kB / 395.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004676/0.2584, allocations: 3.279 MB / 399.2 MB, free: 13.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.402e-05/0.2585, allocations: 7.219 kB / 399.2 MB, free: 13.83 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002251/0.2587, allocations: 105.3 kB / 399.3 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.991e-05/0.2588, allocations: 125.6 kB / 399.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004115/0.2629, allocations: 2.749 MB / 402.1 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01341/0.2763, allocations: 10.49 MB / 412.6 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001733/0.2781, allocations: 1.37 MB / 414 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001153/0.2792, allocations: 0.7882 MB / 414.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002604/0.2795, allocations: 201.3 kB / 415 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.2796, allocations: 47.55 kB / 415 MB, free: 14.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 2.575e-06/0.2796, allocations: 0 / 415 MB, free: 14.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.0134/0.293, allocations: 6.899 MB / 421.9 MB, free: 7.359 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.293, allocations: 64.41 kB / 422 MB, free: 7.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002169/0.2952, allocations: 1.794 MB / 423.8 MB, free: 5.488 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.71e-05/0.2953, allocations: 45.7 kB / 423.8 MB, free: 5.438 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007497/0.296, allocations: 1.271 MB / 425.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002976/0.2963, allocations: 430.1 kB / 425.5 MB, free: 3.738 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004435/0.2968, allocations: 295.2 kB / 425.8 MB, free: 3.445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.893e-05/0.2969, allocations: 310.5 kB / 426.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/0.298, allocations: 0.7769 MB / 426.9 MB, free: 2.363 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.2994, allocations: 1.288 MB / 428.2 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002626/0.302, allocations: 2.221 MB / 430.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.3021, allocations: 4 kB / 430.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003548/0.3056, allocations: 2.474 MB / 432.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.3057, allocations: 12 kB / 432.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/0.3057, allocations: 16 kB / 432.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000578/0.3063, allocations: 243.6 kB / 433.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001376/0.3076, allocations: 415.3 kB / 433.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002244/0.3099, allocations: 3.007 MB / 436.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.311, allocations: 127.7 kB / 436.7 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.3112, allocations: 71.98 kB / 436.8 MB, free: 7.754 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001097/0.3123, allocations: 0.8096 MB / 437.6 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002794/0.3126, allocations: 197.6 kB / 437.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003055/0.3156, allocations: 2.046 MB / 439.8 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.347e-06/0.3156, allocations: 12 kB / 439.8 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3157, allocations: 4 kB / 439.8 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.3157, allocations: 3.984 kB / 439.8 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006608/0.3223, allocations: 4.759 MB / 444.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.3223, allocations: 0 / 444.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.3233, allocations: 263.6 kB / 444.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004954/0.3239, allocations: 203.5 kB / 445 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.606e-05/0.3239, allocations: 27.98 kB / 445.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002136/0.3261, allocations: 2.983 MB / 448.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3261, allocations: 4.031 kB / 448.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004028/0.3301, allocations: 3.133 MB / 451.2 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006174/0.3308, allocations: 426.7 kB / 451.6 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002285/0.331, allocations: 27.92 kB / 451.6 MB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008667/0.3319, allocations: 91.88 kB / 451.7 MB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.332, allocations: 84.89 kB / 451.8 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.742e-05/0.3321, allocations: 35.98 kB / 451.8 MB, free: 8.199 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001618/0.3338, allocations: 1.224 MB / 453.1 MB, free: 6.984 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3338, allocations: 0 / 453.1 MB, free: 6.984 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00136/0.3351, allocations: 488 kB / 453.5 MB, free: 6.508 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004682/0.3398, allocations: 3.784 MB / 457.3 MB, free: 2.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003136/0.343, allocations: 2.339 MB / 459.7 MB, free: 264 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.343, allocations: 0 / 459.7 MB, free: 264 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001667/0.3447, allocations: 1.347 MB / 461 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001947/0.3466, allocations: 463.8 kB / 461.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02968/0.3763, allocations: 21.75 MB / 483.2 MB, free: 6.988 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001662/0.378, allocations: 2.006 MB / 485.2 MB, free: 4.949 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001417/0.3794, allocations: 0.5038 MB / 485.7 MB, free: 4.441 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001205/0.3806, allocations: 1.015 MB / 486.7 MB, free: 3.426 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3806, allocations: 0 / 486.7 MB, free: 3.426 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06136/0.442, allocations: 44.03 MB / 0.5183 GB, free: 7.801 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000172/0.4422, allocations: 269.7 kB / 0.5186 GB, free: 7.535 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.576/3.018, allocations: 0 / 0.5186 GB, free: 7.535 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches