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.SMR_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.001818/0.001818, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.002311/0.002311, allocations: 213.3 kB / 23.73 MB, free: 4.531 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.413/1.413, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.SMR_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 51.91 kB / 377.8 MB, free: 2.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2249, allocations: 53.37 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04293/0.2678, allocations: 34.39 MB / 465.5 MB, free: 4.082 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02171/0.2895, allocations: 10.35 MB / 475.9 MB, free: 9.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006547/0.2961, allocations: 370 kB / 476.2 MB, free: 9.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02053/0.3166, allocations: 8.028 MB / 484.3 MB, free: 1.285 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01165/0.3283, allocations: 3.492 MB / 487.8 MB, free: 13.78 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007665/0.3359, allocations: 2.329 MB / 490.1 MB, free: 11.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01828/0.3542, allocations: 13.03 MB / 0.4913 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0337/0.3879, allocations: 17.12 MB / 0.5081 GB, free: 13.1 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01137/0.3993, allocations: 6.99 MB / 0.5149 GB, free: 6.094 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01383/0.4131, allocations: 7.528 MB / 0.5222 GB, free: 14.54 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005536/0.4186, allocations: 1.953 MB / 0.5241 GB, free: 12.59 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007418/0.4261, allocations: 2.339 MB / 0.5264 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006243/0.4323, allocations: 3.967 MB / 0.5303 GB, free: 6.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01221/0.4445, allocations: 5.907 MB / 0.5361 GB, free: 348 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2237/0.6683, allocations: 26.06 MB / 0.5615 GB, free: 39.2 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.6683, allocations: 2.375 kB / 0.5615 GB, free: 39.2 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.6683, allocations: 0 / 0.5615 GB, free: 39.2 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007962/0.6691, allocations: 3.312 kB / 0.5615 GB, free: 39.2 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04402/0.7131, allocations: 15.24 MB / 0.5764 GB, free: 31.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.7131, allocations: 11.5 kB / 0.5764 GB, free: 31.25 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005114/0.7182, allocations: 1.708 MB / 0.5781 GB, free: 30.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03276/0.751, allocations: 6.126 MB / 0.5841 GB, free: 27.22 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01651/0.7675, allocations: 8.099 MB / 0.592 GB, free: 22.26 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006568/0.7682, allocations: 0.904 MB / 0.5929 GB, free: 21.85 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004685/0.7729, allocations: 1.2 MB / 0.594 GB, free: 21.29 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0438/0.8167, allocations: 18.92 MB / 0.6125 GB, free: 2.262 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005752/0.8172, allocations: 27.27 kB / 0.6125 GB, free: 2.238 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005184/0.8224, allocations: 498.6 kB / 0.613 GB, free: 1.762 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005126/0.8229, allocations: 0.6382 MB / 0.6136 GB, free: 1.121 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03965/0.8626, allocations: 16.75 MB / 0.63 GB, free: 372 kB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1121/0.9747, allocations: 52.48 MB / 0.6812 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01991/0.9946, allocations: 10.27 MB / 0.6913 GB, free: 3.09 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006507/1.001, allocations: 3.408 MB / 0.6946 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01814/1.019, allocations: 7.727 MB / 0.7021 GB, free: 8.059 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.905e-05/1.019, allocations: 77.31 kB / 0.7022 GB, free: 7.973 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 6.412e-06/1.019, allocations: 0 / 0.7022 GB, free: 7.973 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.04116/1.061, allocations: 17.28 MB / 0.7191 GB, free: 6.727 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.22e-05/1.061, allocations: 94.45 kB / 0.7192 GB, free: 6.621 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009237/1.07, allocations: 5.204 MB / 0.7243 GB, free: 1.422 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007541/1.071, allocations: 85.7 kB / 0.7243 GB, free: 1.332 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004628/1.075, allocations: 5.643 MB / 0.7298 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001869/1.077, allocations: 1.422 MB / 0.7312 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00247/1.08, allocations: 1.334 MB / 0.7325 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000127/1.08, allocations: 305.1 kB / 0.7328 GB, free: 8.625 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005084/1.085, allocations: 2.906 MB / 0.7357 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00807/1.093, allocations: 5.925 MB / 0.7415 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0137/1.107, allocations: 9.46 MB / 0.7507 GB, free: 3.941 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.756e-05/1.107, allocations: 32 kB / 0.7507 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2172/1.324, allocations: 9.864 MB / 0.7604 GB, free: 200.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.773e-05/1.324, allocations: 47.75 kB / 0.7604 GB, free: 200.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001484/1.324, allocations: 99.72 kB / 0.7605 GB, free: 200.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002439/1.326, allocations: 0.9361 MB / 0.7614 GB, free: 200.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005461/1.332, allocations: 1.595 MB / 0.763 GB, free: 200.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/1.342, allocations: 9.768 MB / 0.7725 GB, free: 196.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005255/1.348, allocations: 399.8 kB / 0.7729 GB, free: 196.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00103/1.349, allocations: 360.2 kB / 0.7732 GB, free: 196.2 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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.006296/1.355, allocations: 4.246 MB / 0.7774 GB, free: 194.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/1.356, allocations: 0.534 MB / 0.7779 GB, free: 194.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01048/1.367, allocations: 6.47 MB / 0.7842 GB, free: 191.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.493e-05/1.367, allocations: 37.34 kB / 0.7843 GB, free: 191.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.546e-05/1.367, allocations: 14.78 kB / 0.7843 GB, free: 191.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.076e-05/1.367, allocations: 19.5 kB / 0.7843 GB, free: 191.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02802/1.395, allocations: 15 MB / 0.7989 GB, free: 182.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.119e-05/1.395, allocations: 6.438 kB / 0.7989 GB, free: 182.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003335/1.398, allocations: 0.7493 MB / 0.7997 GB, free: 182.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002117/1.4, allocations: 0.7976 MB / 0.8004 GB, free: 181.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000418/1.401, allocations: 87.5 kB / 0.8005 GB, free: 181.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008934/1.409, allocations: 8.927 MB / 0.8092 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/1.409, allocations: 5.312 kB / 0.8093 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01333/1.423, allocations: 9.519 MB / 0.8185 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00317/1.426, allocations: 1.027 MB / 0.8196 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001178/1.427, allocations: 71.95 kB / 0.8196 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002778/1.43, allocations: 217.9 kB / 0.8198 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005826/1.43, allocations: 286 kB / 0.8201 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002721/1.431, allocations: 120 kB / 0.8202 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004956/1.436, allocations: 3.359 MB / 0.8235 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3e-07/1.436, allocations: 0 / 0.8235 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007283/1.443, allocations: 1.883 MB / 0.8253 GB, free: 158.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.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 (368): * Single equations (assignments): 363 * 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.014/1.457, allocations: 10.24 MB / 0.8353 GB, free: 148 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01112/1.468, allocations: 7.221 MB / 0.8424 GB, free: 140.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/1.468, allocations: 4 kB / 0.8424 GB, free: 140.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005309/1.473, allocations: 3.176 MB / 0.8455 GB, free: 137.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006839/1.48, allocations: 1.309 MB / 0.8468 GB, free: 136.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09742/1.578, allocations: 65.22 MB / 0.9105 GB, free: 67.23 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01064/1.588, allocations: 6.927 MB / 0.9172 GB, free: 60.26 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006218/1.595, allocations: 2.16 MB / 0.9193 GB, free: 58.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006859/1.601, allocations: 4.35 MB / 0.9236 GB, free: 53.75 MB / 0.5762 GB Notification: Performance of SimCode: time 1.082e-06/1.601, allocations: 0 / 0.9236 GB, free: 53.75 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4109/2.012, allocations: 152.7 MB / 1.073 GB, free: 138.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.35/22.36, allocations: 15.98 kB / 1.073 GB, free: 138.7 MB / 0.5762 GB " [Timeout remaining time 637] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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_SMR_CurrentSource.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 654] Reference file matches [Calling sys.exit(0), Time elapsed: 41.510473039001226]