Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001028/0.001029, allocations: 199.8 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 226.5 MB / 243.1 MB, free: 12.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007926/0.0007926, allocations: 98.77 kB / 295.1 MB, free: 4.379 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1801/0.1801, allocations: 44.85 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002294/0.0002294, allocations: 4 kB / 464.7 MB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08036/0.0806, allocations: 62.96 MB / 0.5153 GB, free: 5.121 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.00115/0.08178, allocations: 1.341 MB / 0.5166 GB, free: 3.766 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001877/0.08198, allocations: 107.7 kB / 0.5167 GB, free: 3.66 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.551e-05/0.08204, allocations: 3.938 kB / 0.5167 GB, free: 3.656 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.764e-05/0.08207, allocations: 11.92 kB / 0.5168 GB, free: 3.645 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.782e-05/0.08216, allocations: 31.77 kB / 0.5168 GB, free: 3.613 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001177/0.08228, allocations: 15.98 kB / 0.5168 GB, free: 3.598 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 9.618e-05/0.08239, allocations: 123.4 kB / 0.5169 GB, free: 3.477 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.867e-05/0.08249, allocations: 29.09 kB / 0.5169 GB, free: 3.449 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.857e-05/0.08255, allocations: 35.88 kB / 0.517 GB, free: 3.414 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.14e-05/0.08262, allocations: 51.77 kB / 0.517 GB, free: 3.363 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.08264, allocations: 7.938 kB / 0.517 GB, free: 3.355 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.975e-05/0.08266, allocations: 8 kB / 0.517 GB, free: 3.348 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.376e-05/0.08268, allocations: 15.92 kB / 0.5171 GB, free: 3.332 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.321e-05/0.08271, allocations: 41.7 kB / 0.5171 GB, free: 3.285 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 7.688e-05/0.0828, allocations: 91.97 kB / 0.5172 GB, free: 3.195 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.08281, allocations: 0 / 0.5172 GB, free: 3.195 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.08281, allocations: 0 / 0.5172 GB, free: 3.195 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.396e-06/0.08282, allocations: 0 / 0.5172 GB, free: 3.195 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003061/0.08313, allocations: 391.3 kB / 0.5176 GB, free: 2.762 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.726e-05/0.08317, allocations: 8.031 kB / 0.5176 GB, free: 2.754 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.239e-05/0.0832, allocations: 7.906 kB / 0.5176 GB, free: 2.746 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.08332, allocations: 206.7 kB / 0.5178 GB, free: 2.504 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.08334, allocations: 8.234 kB / 0.5178 GB, free: 2.496 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.454e-05/0.08337, allocations: 15.98 kB / 0.5178 GB, free: 2.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001618/0.08353, allocations: 121 kB / 0.5179 GB, free: 2.352 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.08356, allocations: 4 kB / 0.5179 GB, free: 2.348 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.08357, allocations: 8 kB / 0.5179 GB, free: 2.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.08358, allocations: 0 / 0.5179 GB, free: 2.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.005e-05/0.08367, allocations: 63.89 kB / 0.518 GB, free: 2.277 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004996/0.08417, allocations: 0.5449 MB / 0.5185 GB, free: 1.672 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.193e-05/0.08428, allocations: 85.16 kB / 0.5186 GB, free: 1.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.984e-05/0.08431, allocations: 25.72 kB / 0.5186 GB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.367e-06/0.08433, allocations: 7.938 kB / 0.5186 GB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.339e-05/0.08435, allocations: 42.58 kB / 0.5187 GB, free: 1.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.08435, allocations: 0 / 0.5187 GB, free: 1.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004289/0.08479, allocations: 293.5 kB / 0.5189 GB, free: 1.145 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.981e-05/0.08482, allocations: 77.11 kB / 0.519 GB, free: 1.051 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.859e-05/0.08488, allocations: 133.7 kB / 0.5191 GB, free: 0.9102 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.305e-06/0.0849, allocations: 29.7 kB / 0.5192 GB, free: 0.875 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.119e-05/0.08493, allocations: 111.7 kB / 0.5193 GB, free: 0.7617 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.08495, allocations: 31.55 kB / 0.5193 GB, free: 0.7305 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-06/0.08496, allocations: 8 kB / 0.5193 GB, free: 0.7227 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.909e-05/0.08501, allocations: 314.8 kB / 0.5196 GB, free: 416 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.085e-05/0.08505, allocations: 27.92 kB / 0.5196 GB, free: 388 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.824e-05/0.0851, allocations: 92.52 kB / 0.5197 GB, free: 264 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.551e-05/0.08515, allocations: 31.98 kB / 0.5198 GB, free: 232 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.08516, allocations: 4 kB / 0.5198 GB, free: 228 kB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001979/0.08536, allocations: 159.4 kB / 0.5199 GB, free: 56 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.118e-05/0.08538, allocations: 14.3 kB / 0.5199 GB, free: 44 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.08539, allocations: 4 kB / 0.5199 GB, free: 40 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001593/0.08555, allocations: 42.09 kB / 0.52 GB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.513e-05/0.08564, allocations: 23.88 kB / 0.52 GB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001578/0.08722, allocations: 2.533 MB / 0.5225 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.832e-05/0.08729, allocations: 20.09 kB / 0.5225 GB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.948e-06/0.08731, allocations: 8 kB / 0.5225 GB, free: 13.14 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.823e-05/0.08741, allocations: 125.5 kB / 0.5226 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.172e-05/0.08746, allocations: 15.84 kB / 0.5226 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.125e-05/0.08749, allocations: 7.906 kB / 0.5226 GB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.0875, allocations: 4 kB / 0.5226 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.0875, allocations: 0 / 0.5226 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.08751, allocations: 4 kB / 0.5227 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002239/0.08774, allocations: 201.6 kB / 0.5228 GB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.08775, allocations: 0 / 0.5228 GB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.041e-05/0.08784, allocations: 15.94 kB / 0.5229 GB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.786e-05/0.08793, allocations: 41.66 kB / 0.5229 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.08795, allocations: 0 / 0.5229 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/0.08938, allocations: 2.533 MB / 0.5254 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.08939, allocations: 0 / 0.5254 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000254/0.08965, allocations: 304.3 kB / 0.5257 GB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.37e-05/0.0897, allocations: 89.14 kB / 0.5257 GB, free: 9.449 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.08972, allocations: 4 kB / 0.5258 GB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.46e-05/0.08982, allocations: 11.94 kB / 0.5258 GB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.686e-05/0.08984, allocations: 4 kB / 0.5258 GB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.08985, allocations: 11.92 kB / 0.5258 GB, free: 9.418 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.804e-05/0.08991, allocations: 95.59 kB / 0.5259 GB, free: 9.324 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08991, allocations: 0 / 0.5259 GB, free: 9.324 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003386/0.09026, allocations: 39.84 kB / 0.5259 GB, free: 9.285 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.834e-05/0.09035, allocations: 103.2 kB / 0.526 GB, free: 9.172 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003408/0.0907, allocations: 293.4 kB / 0.5263 GB, free: 8.859 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.09071, allocations: 0 / 0.5263 GB, free: 8.859 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00022/0.09093, allocations: 262 kB / 0.5265 GB, free: 8.578 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003866/0.09133, allocations: 32.02 kB / 0.5266 GB, free: 8.547 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006806/0.09202, allocations: 0.58 MB / 0.5271 GB, free: 7.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.09228, allocations: 0.72 MB / 0.5278 GB, free: 7.184 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.902e-05/0.09231, allocations: 11.44 kB / 0.5278 GB, free: 7.172 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.09231, allocations: 0 / 0.5278 GB, free: 7.172 MB / 362.7 MB Notification: Performance of Templates: time 0.003283/0.0956, allocations: 2.407 MB / 0.5302 GB, free: 4.766 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches