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.00189/0.00189, allocations: 191.7 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 226.5 MB / 243.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008808/0.0008809, allocations: 99.19 kB / 295.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3142/0.3142, allocations: 44.83 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002887, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3144, allocations: 62.95 MB / 0.5159 GB, free: 37.29 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.001671/0.3161, allocations: 1.587 MB / 0.5174 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006649/0.3168, allocations: 0.507 MB / 0.5179 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.953e-05/0.3169, allocations: 3.938 kB / 0.5179 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001009/0.317, allocations: 17 kB / 0.5179 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.158e-05/0.3171, allocations: 33.14 kB / 0.518 GB, free: 35.74 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001549/0.3173, allocations: 28.12 kB / 0.518 GB, free: 35.72 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001416/0.3174, allocations: 136.3 kB / 0.5181 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.3176, allocations: 60.25 kB / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.3177, allocations: 49.55 kB / 0.5182 GB, free: 35.6 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.04e-05/0.3178, allocations: 58.22 kB / 0.5183 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.3178, allocations: 5.438 kB / 0.5183 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.834e-05/0.3179, allocations: 13.06 kB / 0.5183 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.058e-05/0.3179, allocations: 22.16 kB / 0.5183 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.981e-05/0.318, allocations: 77.34 kB / 0.5184 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.3181, allocations: 112.8 kB / 0.5185 GB, free: 35.47 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3181, allocations: 2.969 kB / 0.5185 GB, free: 35.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3181, allocations: 0 / 0.5185 GB, free: 35.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.3181, allocations: 0 / 0.5185 GB, free: 35.47 MB / 378.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.0004388/0.3186, allocations: 408.5 kB / 0.5189 GB, free: 35.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.3186, allocations: 9.844 kB / 0.5189 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001413/0.3188, allocations: 31.06 kB / 0.5189 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.3189, allocations: 210.9 kB / 0.5191 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.319, allocations: 14.05 kB / 0.5192 GB, free: 34.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.734e-05/0.319, allocations: 21.06 kB / 0.5192 GB, free: 34.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002311/0.3192, allocations: 126.2 kB / 0.5193 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.3192, allocations: 0 / 0.5193 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.3193, allocations: 4 kB / 0.5193 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.3193, allocations: 9.906 kB / 0.5193 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001625/0.3195, allocations: 86.38 kB / 0.5194 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005636/0.32, allocations: 477.1 kB / 0.5198 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000196/0.3202, allocations: 122.3 kB / 0.52 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.756e-05/0.3203, allocations: 70.72 kB / 0.52 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.3204, allocations: 3 kB / 0.52 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.414e-05/0.3204, allocations: 30.56 kB / 0.5201 GB, free: 34.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.272e-06/0.3204, allocations: 0 / 0.5201 GB, free: 34.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001259/0.3217, allocations: 0.8081 MB / 0.5208 GB, free: 33.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.077e-05/0.3217, allocations: 55.41 kB / 0.5209 GB, free: 33.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.931e-05/0.3218, allocations: 140.1 kB / 0.521 GB, free: 33.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/0.3218, allocations: 29.7 kB / 0.5211 GB, free: 33.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.97e-05/0.3219, allocations: 113.2 kB / 0.5212 GB, free: 33.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.3219, allocations: 66.44 kB / 0.5212 GB, free: 33.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.135e-06/0.3219, allocations: 4 kB / 0.5212 GB, free: 33.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.929e-05/0.322, allocations: 324.8 kB / 0.5215 GB, free: 32.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.544e-05/0.3221, allocations: 51.05 kB / 0.5216 GB, free: 32.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.48e-05/0.3222, allocations: 80.39 kB / 0.5217 GB, free: 32.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001806/0.3223, allocations: 133 kB / 0.5218 GB, free: 32.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3224, allocations: 6.875 kB / 0.5218 GB, free: 32.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003147/0.3227, allocations: 208.9 kB / 0.522 GB, free: 32.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.3227, allocations: 5.656 kB / 0.522 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.3227, allocations: 3.938 kB / 0.522 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001485/0.3229, allocations: 38.8 kB / 0.5221 GB, free: 32.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.323, allocations: 39.5 kB / 0.5221 GB, free: 32.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001045/0.3241, allocations: 1.561 MB / 0.5236 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.529e-05/0.3242, allocations: 12.33 kB / 0.5236 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.24e-05/0.3242, allocations: 5.594 kB / 0.5236 GB, free: 31.14 MB / 378.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 0.0001036/0.3243, allocations: 135 kB / 0.5238 GB, free: 31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.298e-05/0.3243, allocations: 13.75 kB / 0.5238 GB, free: 30.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.528e-05/0.3244, allocations: 20 kB / 0.5238 GB, free: 30.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.3244, allocations: 5.875 kB / 0.5238 GB, free: 30.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3244, allocations: 4.062 kB / 0.5238 GB, free: 30.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3244, allocations: 2.844 kB / 0.5238 GB, free: 30.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006475/0.3251, allocations: 0.5577 MB / 0.5243 GB, free: 30.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3251, allocations: 0 / 0.5243 GB, free: 30.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001554/0.3252, allocations: 39.19 kB / 0.5244 GB, free: 30.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.231e-05/0.3253, allocations: 29.88 kB / 0.5244 GB, free: 30.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.3254, allocations: 6.875 kB / 0.5244 GB, free: 30.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007498/0.3261, allocations: 1.368 MB / 0.5258 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3261, allocations: 10.5 kB / 0.5258 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000421/0.3266, allocations: 352.5 kB / 0.5261 GB, free: 28.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.475e-05/0.3266, allocations: 91.14 kB / 0.5262 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.3266, allocations: 10.78 kB / 0.5262 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.547e-05/0.3267, allocations: 3.062 kB / 0.5262 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.365e-05/0.3268, allocations: 16.52 kB / 0.5262 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.3268, allocations: 9.688 kB / 0.5262 GB, free: 28.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.894e-05/0.3269, allocations: 108.1 kB / 0.5263 GB, free: 28.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3269, allocations: 0 / 0.5263 GB, free: 28.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003005/0.3272, allocations: 42.41 kB / 0.5264 GB, free: 28.72 MB / 378.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.523e-05/0.3273, allocations: 94.97 kB / 0.5265 GB, free: 28.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004048/0.3277, allocations: 253.8 kB / 0.5267 GB, free: 28.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3277, allocations: 0 / 0.5267 GB, free: 28.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002062/0.3279, allocations: 198.1 kB / 0.5269 GB, free: 28.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.3282, allocations: 23.14 kB / 0.5269 GB, free: 28.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006792/0.3289, allocations: 0.5468 MB / 0.5274 GB, free: 27.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.3291, allocations: 0.7174 MB / 0.5281 GB, free: 27.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.025e-05/0.3291, allocations: 22.36 kB / 0.5282 GB, free: 27.2 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.3291, allocations: 3.938 kB / 0.5282 GB, free: 27.2 MB / 378.7 MB Notification: Performance of Templates: time 0.003394/0.3325, allocations: 2.388 MB / 0.5305 GB, free: 27 MB / 378.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