Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00176/0.00176, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002295/0.002295, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 230.3 MB / 258 MB, free: 8.215 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2465/0.2465, allocations: 46.93 MB / 361.4 MB, free: 4.398 MB / 286.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo)
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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain")
translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660]
"Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.003085/0.003085, allocations: 83.84 kB / 0.4971 GB, free: 7.531 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4005/0.4036, allocations: 66.04 MB / 0.5616 GB, free: 4.551 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003462/0.4071, allocations: 1.935 MB / 0.5635 GB, free: 2.609 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00106/0.4081, allocations: 0.5698 MB / 0.5641 GB, free: 2.035 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.4082, allocations: 11.94 kB / 0.5641 GB, free: 2.023 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.4083, allocations: 23.78 kB / 0.5641 GB, free: 2 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 9.211e-05/0.4084, allocations: 39.64 kB / 0.5642 GB, free: 1.961 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002634/0.4087, allocations: 51.88 kB / 0.5642 GB, free: 1.91 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002099/0.4089, allocations: 151.2 kB / 0.5644 GB, free: 1.762 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.4091, allocations: 49.83 kB / 0.5644 GB, free: 1.707 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001955/0.4093, allocations: 63.78 kB / 0.5645 GB, free: 1.645 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/0.4094, allocations: 63.7 kB / 0.5645 GB, free: 1.582 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.865e-05/0.4094, allocations: 16 kB / 0.5645 GB, free: 1.566 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.815e-05/0.4095, allocations: 15.98 kB / 0.5646 GB, free: 1.551 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 3.626e-05/0.4095, allocations: 31.86 kB / 0.5646 GB, free: 1.52 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 8.159e-05/0.4096, allocations: 71.66 kB / 0.5646 GB, free: 1.449 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.4099, allocations: 157.8 kB / 0.5648 GB, free: 1.301 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.4099, allocations: 0 / 0.5648 GB, free: 1.301 MB / 398.1 MB
Notification: Performance of FrontEnd: time 8.82e-07/0.4099, allocations: 0 / 0.5648 GB, free: 1.301 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 5.941e-06/0.4099, allocations: 0 / 0.5648 GB, free: 1.301 MB / 398.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 32
 * Number of variables: 32
Notification: Performance of Generate backend data structure: time 0.0006164/0.4105, allocations: 361.7 kB / 0.5651 GB, free: 0.918 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.4105, allocations: 16.03 kB / 0.5652 GB, free: 0.9023 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002103/0.4107, allocations: 24.83 kB / 0.5652 GB, free: 0.8789 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.411, allocations: 146.3 kB / 0.5653 GB, free: 0.7109 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.411, allocations: 12.38 kB / 0.5653 GB, free: 0.6992 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.783e-05/0.4111, allocations: 16.33 kB / 0.5654 GB, free: 0.6836 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.4114, allocations: 126.8 kB / 0.5655 GB, free: 0.5547 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.4114, allocations: 4 kB / 0.5655 GB, free: 0.5508 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.4114, allocations: 4 kB / 0.5655 GB, free: 0.5469 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.4114, allocations: 8 kB / 0.5655 GB, free: 0.5391 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001985/0.4116, allocations: 87.92 kB / 0.5656 GB, free: 464 kB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007431/0.4124, allocations: 427.4 kB / 0.566 GB, free: 15.99 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002486/0.4126, allocations: 118.5 kB / 0.5661 GB, free: 15.87 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001206/0.4127, allocations: 64.7 kB / 0.5662 GB, free: 15.8 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.4127, allocations: 4 kB / 0.5662 GB, free: 15.8 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.4128, allocations: 30.56 kB / 0.5662 GB, free: 15.76 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=13): time 1.082e-06/0.4128, allocations: 0 / 0.5662 GB, free: 15.76 MB / 414.1 MB
Notification: Performance of matching and sorting (n=19): time 0.001486/0.4143, allocations: 0.6631 MB / 0.5668 GB, free: 15.04 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.4143, allocations: 51.41 kB / 0.5669 GB, free: 14.98 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.4144, allocations: 144 kB / 0.567 GB, free: 14.83 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.477e-05/0.4145, allocations: 29.7 kB / 0.567 GB, free: 14.79 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 8.774e-05/0.4146, allocations: 120.3 kB / 0.5672 GB, free: 14.67 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.401e-05/0.4146, allocations: 71.38 kB / 0.5672 GB, free: 14.6 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-05/0.4147, allocations: 45.64 kB / 0.5673 GB, free: 14.55 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001604/0.4148, allocations: 322.8 kB / 0.5676 GB, free: 14.22 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.827e-05/0.4149, allocations: 39.98 kB / 0.5676 GB, free: 14.18 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.4151, allocations: 82.91 kB / 0.5677 GB, free: 14.09 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002494/0.4153, allocations: 139.3 kB / 0.5678 GB, free: 13.95 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4153, allocations: 4 kB / 0.5678 GB, free: 13.94 MB / 414.1 MB
Notification: Performance of matching and sorting (n=22) (initialization): time 0.000392/0.4157, allocations: 202.2 kB / 0.568 GB, free: 13.73 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.4158, allocations: 14.44 kB / 0.568 GB, free: 13.72 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4158, allocations: 0 / 0.568 GB, free: 13.72 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0001889/0.4159, allocations: 40.83 kB / 0.5681 GB, free: 13.68 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.4161, allocations: 40 kB / 0.5681 GB, free: 13.64 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001827/0.418, allocations: 1.625 MB / 0.5697 GB, free: 11.9 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.603e-05/0.418, allocations: 11.97 kB / 0.5697 GB, free: 11.89 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.418, allocations: 8.25 kB / 0.5697 GB, free: 11.88 MB / 414.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 4
 * 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 (17):
 * Single equations (assignments): 16
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(1,5,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.4182, allocations: 121.8 kB / 0.5698 GB, free: 11.75 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.129e-05/0.4182, allocations: 15.98 kB / 0.5699 GB, free: 11.74 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.414e-05/0.4183, allocations: 21.17 kB / 0.5699 GB, free: 11.72 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.4183, allocations: 15.94 kB / 0.5699 GB, free: 11.7 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4183, allocations: 0 / 0.5699 GB, free: 11.7 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.4183, allocations: 0 / 0.5699 GB, free: 11.7 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008297/0.4191, allocations: 0.5184 MB / 0.5704 GB, free: 11.13 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.4191, allocations: 3.984 kB / 0.5704 GB, free: 11.12 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.4193, allocations: 39.95 kB / 0.5704 GB, free: 11.09 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001049/0.4194, allocations: 28.84 kB / 0.5705 GB, free: 11.05 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.4194, allocations: 4 kB / 0.5705 GB, free: 11.05 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001157/0.4206, allocations: 1.373 MB / 0.5718 GB, free: 9.562 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4206, allocations: 0 / 0.5718 GB, free: 9.562 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005215/0.4211, allocations: 350.9 kB / 0.5721 GB, free: 9.199 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.146e-05/0.4211, allocations: 15.88 kB / 0.5722 GB, free: 9.184 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.4211, allocations: 4 kB / 0.5722 GB, free: 9.18 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.364e-05/0.4212, allocations: 7.984 kB / 0.5722 GB, free: 9.172 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.4213, allocations: 19.91 kB / 0.5722 GB, free: 9.152 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/0.4213, allocations: 4.141 kB / 0.5722 GB, free: 9.148 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 7.985e-05/0.4214, allocations: 107.3 kB / 0.5723 GB, free: 9.043 MB / 414.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.4214, allocations: 4 kB / 0.5723 GB, free: 9.039 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0003186/0.4217, allocations: 36.06 kB / 0.5723 GB, free: 9.004 MB / 414.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 2
 * Number of states: 2 (J1.phi,J1.w)
 * 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 (16):
 * Single equations (assignments): 15
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(1,3,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001128/0.4218, allocations: 103.2 kB / 0.5724 GB, free: 8.895 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.00052/0.4223, allocations: 251.3 kB / 0.5727 GB, free: 8.637 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.4223, allocations: 3.938 kB / 0.5727 GB, free: 8.633 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002653/0.4226, allocations: 198.7 kB / 0.5729 GB, free: 8.426 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.4229, allocations: 23.08 kB / 0.5729 GB, free: 8.406 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000878/0.4238, allocations: 449.4 kB / 0.5733 GB, free: 7.938 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004364/0.4243, allocations: 0.7244 MB / 0.574 GB, free: 7.184 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 5.336e-05/0.4243, allocations: 13.42 kB / 0.574 GB, free: 7.168 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.422e-05/0.4244, allocations: 15.44 kB / 0.5741 GB, free: 7.152 MB / 414.1 MB
Notification: Performance of SimCode: time 3.2e-07/0.4244, allocations: 0 / 0.5741 GB, free: 7.152 MB / 414.1 MB
Notification: Performance of Templates: time 0.005482/0.4298, allocations: 1.734 MB / 0.5757 GB, free: 5.422 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.397734188474715]