Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 214.3 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.408/1.408, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 39.94 kB / 377.8 MB, free: 2.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.233, allocations: 53.37 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0427/0.2757, allocations: 35.86 MB / 467 MB, free: 2.652 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02291/0.2986, allocations: 10.89 MB / 477.9 MB, free: 7.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006995/0.3056, allocations: 381.9 kB / 478.3 MB, free: 7.348 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02075/0.3264, allocations: 8.269 MB / 486.5 MB, free: 15.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01274/0.3391, allocations: 3.655 MB / 490.2 MB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007822/0.3469, allocations: 2.405 MB / 492.6 MB, free: 8.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01822/0.3652, allocations: 13.5 MB / 0.4942 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03431/0.3995, allocations: 17.37 MB / 0.5112 GB, free: 9.906 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01237/0.4118, allocations: 7.165 MB / 0.5182 GB, free: 2.723 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0151/0.4269, allocations: 7.695 MB / 0.5257 GB, free: 11 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00661/0.4335, allocations: 1.988 MB / 0.5276 GB, free: 9.012 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00804/0.4416, allocations: 2.386 MB / 0.53 GB, free: 6.625 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00758/0.4492, allocations: 4.052 MB / 0.5339 GB, free: 2.562 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.4049/0.8541, allocations: 6.062 MB / 0.5399 GB, free: 31.6 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02789/0.882, allocations: 26.66 MB / 0.5659 GB, free: 27.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.882, allocations: 0 / 0.5659 GB, free: 27.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.882, allocations: 0 / 0.5659 GB, free: 27.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007376/0.8827, allocations: 0.8125 kB / 0.5659 GB, free: 27.16 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04496/0.9277, allocations: 15.68 MB / 0.5812 GB, free: 19.06 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.9277, allocations: 11.47 kB / 0.5812 GB, free: 19.06 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006649/0.9344, allocations: 1.747 MB / 0.5829 GB, free: 17.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03152/0.9659, allocations: 6.205 MB / 0.589 GB, free: 14.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01942/0.9853, allocations: 8.304 MB / 0.5971 GB, free: 9.859 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009338/0.9863, allocations: 0.9258 MB / 0.598 GB, free: 9.441 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005874/0.9921, allocations: 1.223 MB / 0.5992 GB, free: 8.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05619/1.048, allocations: 19.28 MB / 0.618 GB, free: 5.328 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004339/1.049, allocations: 23.28 kB / 0.618 GB, free: 5.309 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003968/1.053, allocations: 0.5094 MB / 0.6185 GB, free: 4.812 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007722/1.053, allocations: 0.6543 MB / 0.6192 GB, free: 4.156 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04122/1.095, allocations: 17.01 MB / 0.6358 GB, free: 3.145 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1174/1.212, allocations: 53.9 MB / 0.6884 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01957/1.232, allocations: 10.38 MB / 0.6986 GB, free: 4.344 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006697/1.238, allocations: 3.477 MB / 0.702 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02153/1.26, allocations: 7.933 MB / 0.7097 GB, free: 9.047 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.655e-05/1.26, allocations: 73.39 kB / 0.7098 GB, free: 8.965 MB / 0.545 GB Notification: Performance of pre-optimization done (n=361): time 6.582e-06/1.26, allocations: 0 / 0.7098 GB, free: 8.965 MB / 0.545 GB Notification: Performance of matching and sorting (n=403): time 0.03936/1.299, allocations: 17.55 MB / 0.7269 GB, free: 7.449 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.824e-05/1.299, allocations: 100.6 kB / 0.727 GB, free: 7.344 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00965/1.309, allocations: 5.439 MB / 0.7323 GB, free: 1.922 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.000761/1.31, allocations: 93.7 kB / 0.7324 GB, free: 1.824 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.005187/1.315, allocations: 5.822 MB / 0.7381 GB, free: 11.99 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002056/1.317, allocations: 1.471 MB / 0.7395 GB, free: 10.54 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002826/1.32, allocations: 1.374 MB / 0.7409 GB, free: 9.16 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001335/1.32, allocations: 308.9 kB / 0.7412 GB, free: 8.859 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005584/1.326, allocations: 2.969 MB / 0.7441 GB, free: 5.887 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2227/1.548, allocations: 6.061 MB / 0.75 GB, free: 198.2 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0121/1.56, allocations: 9.684 MB / 0.7595 GB, free: 194 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001868/1.561, allocations: 29.69 kB / 0.7595 GB, free: 194 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01723/1.578, allocations: 10.11 MB / 0.7694 GB, free: 191.5 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.088e-05/1.578, allocations: 47.86 kB / 0.7694 GB, free: 191.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002034/1.578, allocations: 102.7 kB / 0.7695 GB, free: 191.5 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002367/1.581, allocations: 0.9363 MB / 0.7704 GB, free: 191.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005616/1.586, allocations: 1.637 MB / 0.772 GB, free: 191.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009979/1.596, allocations: 9.783 MB / 0.7816 GB, free: 184.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005805/1.602, allocations: 422 kB / 0.782 GB, free: 184.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001383/1.603, allocations: 369.4 kB / 0.7823 GB, free: 184.5 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007805/1.611, allocations: 4.305 MB / 0.7865 GB, free: 182.4 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001666/1.613, allocations: 0.5686 MB / 0.7871 GB, free: 182.4 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01079/1.624, allocations: 6.64 MB / 0.7936 GB, free: 178.5 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.402e-05/1.624, allocations: 44 kB / 0.7936 GB, free: 178.5 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/1.624, allocations: 11.94 kB / 0.7936 GB, free: 178.5 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-05/1.624, allocations: 21.09 kB / 0.7936 GB, free: 178.5 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02677/1.65, allocations: 15.5 MB / 0.8088 GB, free: 165.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/1.65, allocations: 4 kB / 0.8088 GB, free: 165.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00295/1.653, allocations: 0.7866 MB / 0.8096 GB, free: 164.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002017/1.655, allocations: 0.7829 MB / 0.8103 GB, free: 164.3 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004061/1.656, allocations: 91.36 kB / 0.8104 GB, free: 164.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008489/1.664, allocations: 8.918 MB / 0.8191 GB, free: 155.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/1.664, allocations: 4 kB / 0.8191 GB, free: 155.8 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01247/1.677, allocations: 9.82 MB / 0.8287 GB, free: 147.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002917/1.68, allocations: 1.07 MB / 0.8298 GB, free: 146.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001065/1.681, allocations: 80.92 kB / 0.8298 GB, free: 146.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00255/1.683, allocations: 227.7 kB / 0.83 GB, free: 146.1 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000513/1.684, allocations: 297.2 kB / 0.8303 GB, free: 145.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002529/1.684, allocations: 124 kB / 0.8304 GB, free: 145.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004855/1.689, allocations: 3.502 MB / 0.8339 GB, free: 142.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.01e-07/1.689, allocations: 0 / 0.8339 GB, free: 142.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.006653/1.696, allocations: 1.938 MB / 0.8358 GB, free: 140.2 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.01267/1.708, allocations: 10.55 MB / 0.8461 GB, free: 129.6 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01049/1.719, allocations: 7.388 MB / 0.8533 GB, free: 122.1 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/1.719, allocations: 4 kB / 0.8533 GB, free: 122.1 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004661/1.723, allocations: 3.244 MB / 0.8564 GB, free: 118.9 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006597/1.73, allocations: 1.41 MB / 0.8578 GB, free: 117.5 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09828/1.828, allocations: 67.52 MB / 0.9238 GB, free: 46.03 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007223/1.836, allocations: 7.034 MB / 0.9306 GB, free: 38.95 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005598/1.841, allocations: 2.198 MB / 0.9328 GB, free: 36.74 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005993/1.847, allocations: 4.526 MB / 0.9372 GB, free: 32.21 MB / 0.5763 GB Notification: Performance of SimCode: time 1.072e-06/1.847, allocations: 0 / 0.9372 GB, free: 32.21 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4589/2.306, allocations: 159.3 MB / 1.093 GB, free: 106.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.92/22.23, allocations: 7.984 kB / 1.093 GB, free: 106.4 MB / 0.5763 GB " [Timeout remaining time 638] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 653] Reference file matches [Calling sys.exit(0), Time elapsed: 39.50429338775575]