Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.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.001801/0.001801, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002445/0.002445, allocations: 206.9 kB / 23.73 MB, free: 4.379 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.49/1.49, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2378/0.2378, allocations: 46.96 MB / 360.9 MB, free: 4.109 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003062/0.003062, allocations: 63.91 kB / 0.4961 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4187/0.4217, allocations: 66.03 MB / 0.5606 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.009307/0.431, allocations: 5.139 MB / 0.5656 GB, free: 14.92 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005394/0.4364, allocations: 2.255 MB / 0.5678 GB, free: 12.66 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001021/0.4374, allocations: 55.56 kB / 0.5678 GB, free: 12.61 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006791/0.4381, allocations: 234 kB / 0.5681 GB, free: 12.38 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006002/0.4387, allocations: 178.3 kB / 0.5682 GB, free: 12.2 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.4401, allocations: 474.9 kB / 0.5687 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001603/0.4417, allocations: 1.114 MB / 0.5698 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009344/0.4427, allocations: 425.8 kB / 0.5702 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007054/0.4434, allocations: 394.6 kB / 0.5706 GB, free: 9.793 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006129/0.444, allocations: 394 kB / 0.5709 GB, free: 9.406 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001644/0.4441, allocations: 92 kB / 0.571 GB, free: 9.316 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003631/0.4445, allocations: 159.9 kB / 0.5712 GB, free: 9.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002764/0.4448, allocations: 219.3 kB / 0.5714 GB, free: 8.945 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005236/0.4453, allocations: 374.1 kB / 0.5717 GB, free: 8.578 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00204/0.4473, allocations: 1.294 MB / 0.573 GB, free: 7.281 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.4473, allocations: 0 / 0.573 GB, free: 7.281 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4473, allocations: 0 / 0.573 GB, free: 7.281 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.336e-05/0.4474, allocations: 0 / 0.573 GB, free: 7.281 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002412/0.4498, allocations: 1.085 MB / 0.5741 GB, free: 6.164 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/0.4498, allocations: 8.031 kB / 0.5741 GB, free: 6.156 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002605/0.4501, allocations: 147.9 kB / 0.5742 GB, free: 6.004 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007426/0.4509, allocations: 120.2 kB / 0.5743 GB, free: 5.887 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001583/0.4524, allocations: 0.5184 MB / 0.5748 GB, free: 5.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.251e-05/0.4525, allocations: 70 kB / 0.5749 GB, free: 5.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.4527, allocations: 95.95 kB / 0.575 GB, free: 5.176 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002378/0.4551, allocations: 0.8892 MB / 0.5759 GB, free: 4.227 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.128e-05/0.4552, allocations: 4 kB / 0.5759 GB, free: 4.223 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.4553, allocations: 36 kB / 0.5759 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-05/0.4553, allocations: 24 kB / 0.5759 GB, free: 4.164 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001648/0.457, allocations: 0.5229 MB / 0.5764 GB, free: 3.637 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005887/0.4628, allocations: 3.318 MB / 0.5797 GB, free: 176 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000884/0.4637, allocations: 207.1 kB / 0.5799 GB, free: 15.96 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002636/0.464, allocations: 96.81 kB / 0.58 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001476/0.4641, allocations: 19.92 kB / 0.58 GB, free: 15.84 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.307e-05/0.4642, allocations: 38.56 kB / 0.58 GB, free: 15.79 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 3.637e-06/0.4642, allocations: 0 / 0.58 GB, free: 15.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=35): time 0.003678/0.4679, allocations: 1.158 MB / 0.5812 GB, free: 14.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.4679, allocations: 59.34 kB / 0.5812 GB, free: 14.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006986/0.4686, allocations: 409.8 kB / 0.5816 GB, free: 14.1 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.4687, allocations: 29.7 kB / 0.5816 GB, free: 14.06 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004991/0.4692, allocations: 483.4 kB / 0.5821 GB, free: 13.58 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.4693, allocations: 138.8 kB / 0.5822 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002126/0.4695, allocations: 102.2 kB / 0.5823 GB, free: 13.34 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000269/0.4698, allocations: 370.7 kB / 0.5827 GB, free: 12.96 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003376/0.4701, allocations: 117.3 kB / 0.5828 GB, free: 12.85 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005517/0.4707, allocations: 311 kB / 0.5831 GB, free: 12.46 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008753/0.4716, allocations: 455.6 kB / 0.5835 GB, free: 11.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.4716, allocations: 4 kB / 0.5835 GB, free: 11.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008863/0.4725, allocations: 0.5057 MB / 0.584 GB, free: 11.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.4725, allocations: 8 kB / 0.584 GB, free: 11.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.4725, allocations: 12.06 kB / 0.584 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000233/0.4727, allocations: 40.83 kB / 0.5841 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006243/0.4734, allocations: 127.7 kB / 0.5842 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006187/0.474, allocations: 0.5563 MB / 0.5847 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003764/0.4743, allocations: 23.98 kB / 0.5848 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.627e-05/0.4744, allocations: 24 kB / 0.5848 GB, free: 10.59 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005023/0.4749, allocations: 225.6 kB / 0.585 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.4751, allocations: 55.61 kB / 0.585 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009915/0.4761, allocations: 331.2 kB / 0.5854 GB, free: 9.977 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.288e-06/0.4761, allocations: 4 kB / 0.5854 GB, free: 9.973 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4761, allocations: 0 / 0.5854 GB, free: 9.973 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.699e-06/0.4761, allocations: 3.984 kB / 0.5854 GB, free: 9.969 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002532/0.4786, allocations: 0.9956 MB / 0.5863 GB, free: 8.906 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/0.4786, allocations: 8.031 kB / 0.5864 GB, free: 8.898 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006604/0.4793, allocations: 75.89 kB / 0.5864 GB, free: 8.824 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002462/0.4795, allocations: 40.78 kB / 0.5865 GB, free: 8.781 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.939e-05/0.4796, allocations: 8 kB / 0.5865 GB, free: 8.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005949/0.4802, allocations: 0.5445 MB / 0.587 GB, free: 8.203 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.4802, allocations: 4.031 kB / 0.587 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.4815, allocations: 0.5639 MB / 0.5876 GB, free: 7.598 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.4816, allocations: 47.81 kB / 0.5876 GB, free: 7.551 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.655e-05/0.4817, allocations: 12 kB / 0.5876 GB, free: 7.539 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002684/0.482, allocations: 8 kB / 0.5876 GB, free: 7.531 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.907e-05/0.482, allocations: 31.89 kB / 0.5877 GB, free: 7.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-05/0.4821, allocations: 11.98 kB / 0.5877 GB, free: 7.488 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004763/0.4826, allocations: 267.2 kB / 0.5879 GB, free: 7.227 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4826, allocations: 4 kB / 0.5879 GB, free: 7.223 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009988/0.4836, allocations: 124 kB / 0.588 GB, free: 7.102 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001838/0.4854, allocations: 1.118 MB / 0.5891 GB, free: 5.938 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.4865, allocations: 321.7 kB / 0.5894 GB, free: 5.625 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.4865, allocations: 0 / 0.5894 GB, free: 5.625 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004277/0.4869, allocations: 127.9 kB / 0.5896 GB, free: 5.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006789/0.4876, allocations: 91.45 kB / 0.5896 GB, free: 5.422 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01038/0.498, allocations: 4.854 MB / 0.5944 GB, free: 296 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006306/0.4986, allocations: 372.2 kB / 0.5947 GB, free: 15.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003195/0.4989, allocations: 60.53 kB / 0.5948 GB, free: 15.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005376/0.4995, allocations: 299.3 kB / 0.5951 GB, free: 15.54 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4995, allocations: 0 / 0.5951 GB, free: 15.54 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04986/0.5493, allocations: 10.18 MB / 0.605 GB, free: 5.574 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.51, allocations: 8.047 kB / 0.605 GB, free: 5.566 MB / 446.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.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: 16.535339363996172]