Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009363/0.0009362, allocations: 202.2 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 226.5 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007338/0.0007341, allocations: 92.75 kB / 295.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1993/0.1993, allocations: 44.83 MB / 392 MB, free: 9.34 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002399/0.0002399, allocations: 8 kB / 464.7 MB, free: 49.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1079, allocations: 62.96 MB / 0.5153 GB, free: 2.793 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.001966/0.1099, allocations: 1.58 MB / 0.5169 GB, free: 1.195 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007574/0.1107, allocations: 0.5068 MB / 0.5174 GB, free: 0.6836 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.147e-05/0.1108, allocations: 0 / 0.5174 GB, free: 0.6836 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001025/0.1109, allocations: 15.86 kB / 0.5174 GB, free: 0.668 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.145e-05/0.111, allocations: 35.69 kB / 0.5174 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001532/0.1112, allocations: 27.97 kB / 0.5174 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.1113, allocations: 135.3 kB / 0.5176 GB, free: 484 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.1115, allocations: 49.78 kB / 0.5176 GB, free: 428 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.1116, allocations: 55.77 kB / 0.5177 GB, free: 372 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.1117, allocations: 51.78 kB / 0.5177 GB, free: 320 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.086e-05/0.1118, allocations: 8 kB / 0.5177 GB, free: 312 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.114e-05/0.1118, allocations: 8 kB / 0.5177 GB, free: 304 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.939e-05/0.1118, allocations: 19.92 kB / 0.5177 GB, free: 284 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.508e-05/0.1119, allocations: 53.58 kB / 0.5178 GB, free: 224 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000146/0.1121, allocations: 108 kB / 0.5179 GB, free: 116 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.1121, allocations: 0 / 0.5179 GB, free: 116 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1121, allocations: 4 kB / 0.5179 GB, free: 112 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1121, allocations: 0 / 0.5179 GB, free: 112 kB / 346.7 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.2005/0.3126, allocations: 409.5 kB / 0.5183 GB, free: 11.79 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.3127, allocations: 9.312 kB / 0.5183 GB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001552/0.3128, allocations: 26.58 kB / 0.5183 GB, free: 11.78 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001668/0.313, allocations: 204.9 kB / 0.5185 GB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.313, allocations: 12.56 kB / 0.5185 GB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.668e-05/0.3131, allocations: 16.92 kB / 0.5186 GB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002782/0.3134, allocations: 123.1 kB / 0.5187 GB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.3134, allocations: 1.094 kB / 0.5187 GB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.3134, allocations: 5.156 kB / 0.5187 GB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.3134, allocations: 8.016 kB / 0.5187 GB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002108/0.3136, allocations: 95.25 kB / 0.5188 GB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006562/0.3143, allocations: 479.2 kB / 0.5192 GB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002287/0.3145, allocations: 118.8 kB / 0.5193 GB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.3147, allocations: 62.62 kB / 0.5194 GB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.3147, allocations: 1.75 kB / 0.5194 GB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.404e-05/0.3147, allocations: 39.48 kB / 0.5194 GB, free: 11.17 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.483e-06/0.3147, allocations: 1.125 kB / 0.5194 GB, free: 11.17 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.001372/0.3161, allocations: 0.8098 MB / 0.5202 GB, free: 10.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.17e-05/0.3161, allocations: 55.45 kB / 0.5203 GB, free: 10.62 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.3162, allocations: 138.5 kB / 0.5204 GB, free: 10.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.3163, allocations: 29.83 kB / 0.5204 GB, free: 10.49 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.656e-05/0.3163, allocations: 111.9 kB / 0.5206 GB, free: 10.39 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.585e-05/0.3164, allocations: 70.64 kB / 0.5206 GB, free: 10.34 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.755e-06/0.3164, allocations: 4.406 kB / 0.5206 GB, free: 10.34 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.409e-05/0.3164, allocations: 324.2 kB / 0.5209 GB, free: 10.03 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.3165, allocations: 44.06 kB / 0.521 GB, free: 10.03 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.3167, allocations: 83.17 kB / 0.5211 GB, free: 9.992 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001097/0.3168, allocations: 58.98 kB / 0.5211 GB, free: 9.969 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.3168, allocations: 0.8438 kB / 0.5211 GB, free: 9.969 MB / 346.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003573/0.3171, allocations: 214.8 kB / 0.5213 GB, free: 9.863 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.3172, allocations: 4.844 kB / 0.5213 GB, free: 9.863 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3172, allocations: 1.562 kB / 0.5213 GB, free: 9.863 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001448/0.3173, allocations: 44.08 kB / 0.5214 GB, free: 9.844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.3175, allocations: 42.08 kB / 0.5214 GB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009932/0.3185, allocations: 1.556 MB / 0.5229 GB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.2e-05/0.3186, allocations: 5.75 kB / 0.5229 GB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.3186, allocations: 8.531 kB / 0.5229 GB, free: 8.344 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.205e-05/0.3187, allocations: 126.8 kB / 0.5231 GB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.172e-05/0.3187, allocations: 13.03 kB / 0.5231 GB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.268e-05/0.3188, allocations: 25.11 kB / 0.5231 GB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.3188, allocations: 3.406 kB / 0.5231 GB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3188, allocations: 1.766 kB / 0.5231 GB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3188, allocations: 0.6562 kB / 0.5231 GB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006701/0.3195, allocations: 0.5594 MB / 0.5237 GB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3195, allocations: 0.5 kB / 0.5237 GB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000167/0.3197, allocations: 42.62 kB / 0.5237 GB, free: 7.758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.672e-05/0.3198, allocations: 30.56 kB / 0.5237 GB, free: 7.746 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.3198, allocations: 5.812 kB / 0.5237 GB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000747/0.3205, allocations: 1.374 MB / 0.5251 GB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3206, allocations: 6.109 kB / 0.5251 GB, free: 6.383 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004245/0.321, allocations: 352.7 kB / 0.5254 GB, free: 6.152 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.749e-05/0.321, allocations: 85.66 kB / 0.5255 GB, free: 6.055 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.779e-05/0.321, allocations: 6.078 kB / 0.5255 GB, free: 6.051 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.004e-05/0.3211, allocations: 12.41 kB / 0.5255 GB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.502e-05/0.3212, allocations: 15.86 kB / 0.5255 GB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.3212, allocations: 8.344 kB / 0.5255 GB, free: 6.035 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.644e-05/0.3213, allocations: 108 kB / 0.5256 GB, free: 5.953 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3213, allocations: 0 / 0.5256 GB, free: 5.953 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002831/0.3216, allocations: 38.06 kB / 0.5257 GB, free: 5.949 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.748e-05/0.3217, allocations: 108.4 kB / 0.5258 GB, free: 5.844 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004191/0.3221, allocations: 260.8 kB / 0.526 GB, free: 5.688 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3221, allocations: 0 / 0.526 GB, free: 5.688 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002302/0.3223, allocations: 198.8 kB / 0.5262 GB, free: 5.547 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.3226, allocations: 27.83 kB / 0.5262 GB, free: 5.531 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007088/0.3234, allocations: 0.5324 MB / 0.5268 GB, free: 5.137 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001729/0.3236, allocations: 0.7213 MB / 0.5275 GB, free: 4.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.09e-05/0.3236, allocations: 15.73 kB / 0.5275 GB, free: 4.422 MB / 346.7 MB Notification: Performance of SimCode: time 3.31e-07/0.3236, allocations: 1.219 kB / 0.5275 GB, free: 4.422 MB / 346.7 MB Notification: Performance of Templates: time 0.004624/0.3282, allocations: 2.397 MB / 0.5298 GB, free: 4.227 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches