Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.IntegratorForceState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gain.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState") translateModel(ModelicaTest.Blocks.IntegratorForceState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gain.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001731/0.001731, allocations: 105.5 kB / 16.41 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 195.2 kB / 17.34 MB, free: 5.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.652/1.652, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2274/0.2274, allocations: 43.52 MB / 314.1 MB, free: 440 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 61.47 kB / 441.8 MB, free: 5.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1132, allocations: 57.78 MB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.002487/0.1158, allocations: 1.563 MB / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001677/0.1159, allocations: 51.75 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.823e-05/0.116, allocations: 4 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.668e-05/0.1161, allocations: 11.92 kB / 0.4895 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.292e-05/0.1161, allocations: 3.938 kB / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.605e-05/0.1162, allocations: 15.92 kB / 0.4895 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.121e-05/0.1163, allocations: 43.91 kB / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.619e-05/0.1164, allocations: 11.98 kB / 0.4895 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.107e-05/0.1164, allocations: 11.94 kB / 0.4895 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.532e-05/0.1164, allocations: 15.92 kB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.063e-05/0.1164, allocations: 4 kB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.795e-06/0.1164, allocations: 0 / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.347e-05/0.1165, allocations: 7.938 kB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.263e-05/0.1165, allocations: 15.94 kB / 0.4896 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.274e-05/0.1166, allocations: 39.75 kB / 0.4896 GB, free: 9.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.215e-06/0.1166, allocations: 4 kB / 0.4896 GB, free: 9.977 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1166, allocations: 0 / 0.4896 GB, free: 9.977 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.216e-06/0.1166, allocations: 0 / 0.4896 GB, free: 9.977 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000311/0.1169, allocations: 355.3 kB / 0.49 GB, free: 9.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.623e-05/0.1169, allocations: 15.89 kB / 0.49 GB, free: 9.562 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.176e-05/0.117, allocations: 4.891 kB / 0.49 GB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.1171, allocations: 188.2 kB / 0.4902 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.641e-06/0.1171, allocations: 384 / 0.4902 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.1172, allocations: 8.375 kB / 0.4902 GB, free: 9.328 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.1173, allocations: 72.75 kB / 0.4902 GB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.681e-06/0.1173, allocations: 192 / 0.4902 GB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-06/0.1173, allocations: 7.938 kB / 0.4902 GB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.675e-06/0.1173, allocations: 0 / 0.4902 GB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.007e-05/0.1174, allocations: 19.98 kB / 0.4903 GB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003972/0.1178, allocations: 453.2 kB / 0.4907 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/0.118, allocations: 38.56 kB / 0.4907 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.475e-05/0.118, allocations: 24.88 kB / 0.4908 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.563e-06/0.118, allocations: 7.938 kB / 0.4908 GB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.707e-05/0.1181, allocations: 30.56 kB / 0.4908 GB, free: 8.594 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.1181, allocations: 3.938 kB / 0.4908 GB, free: 8.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003843/0.1184, allocations: 109.8 kB / 0.4909 GB, free: 8.477 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.1185, allocations: 51.41 kB / 0.4909 GB, free: 8.414 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.684e-05/0.1186, allocations: 117.8 kB / 0.4911 GB, free: 8.289 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.1186, allocations: 29.7 kB / 0.4911 GB, free: 8.254 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.01e-05/0.1186, allocations: 96.03 kB / 0.4912 GB, free: 8.156 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.362e-05/0.1187, allocations: 15.89 kB / 0.4912 GB, free: 8.141 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/0.1187, allocations: 21.72 kB / 0.4912 GB, free: 8.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1188, allocations: 318.8 kB / 0.4915 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.525e-05/0.1189, allocations: 12 kB / 0.4915 GB, free: 7.781 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.392e-05/0.119, allocations: 43.42 kB / 0.4916 GB, free: 7.727 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001121/0.1191, allocations: 59.36 kB / 0.4916 GB, free: 7.656 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.1191, allocations: 0 / 0.4916 GB, free: 7.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001476/0.1192, allocations: 81.56 kB / 0.4917 GB, free: 7.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.1193, allocations: 8.094 kB / 0.4917 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.1193, allocations: 4 kB / 0.4917 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.1193, allocations: 0 / 0.4917 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.058e-05/0.1194, allocations: 19.92 kB / 0.4917 GB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.1194, allocations: 4 kB / 0.4917 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.491e-05/0.1194, allocations: 0 / 0.4917 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.1194, allocations: 4 kB / 0.4917 GB, free: 7.531 MB / 382.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: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.19e-05/0.1195, allocations: 121.7 kB / 0.4919 GB, free: 7.402 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.1195, allocations: 7.938 kB / 0.4919 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.793e-05/0.1196, allocations: 15.91 kB / 0.4919 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.1196, allocations: 0 / 0.4919 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1196, allocations: 4 kB / 0.4919 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1196, allocations: 0 / 0.4919 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001574/0.1198, allocations: 169.6 kB / 0.4921 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.1198, allocations: 4 kB / 0.4921 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.015e-05/0.1198, allocations: 11.98 kB / 0.4921 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.1198, allocations: 384 / 0.4921 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.1199, allocations: 0 / 0.4921 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.1199, allocations: 3.938 kB / 0.4921 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1199, allocations: 4 kB / 0.4921 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002172/0.1201, allocations: 179.3 kB / 0.4922 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.669e-05/0.1201, allocations: 81.06 kB / 0.4923 GB, free: 6.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.1202, allocations: 12.02 kB / 0.4923 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.737e-05/0.1202, allocations: 0 / 0.4923 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.079e-05/0.1203, allocations: 0 / 0.4923 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-06/0.1203, allocations: 4 kB / 0.4923 GB, free: 6.824 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.49e-05/0.1203, allocations: 95.33 kB / 0.4924 GB, free: 6.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1203, allocations: 0 / 0.4924 GB, free: 6.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002124/0.1206, allocations: 4 kB / 0.4924 GB, free: 6.727 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (gain.y) * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.929e-05/0.1206, allocations: 95.19 kB / 0.4925 GB, free: 6.625 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001427/0.1208, allocations: 43.91 kB / 0.4926 GB, free: 6.582 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1208, allocations: 0 / 0.4926 GB, free: 6.582 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.751e-05/0.1208, allocations: 24.12 kB / 0.4926 GB, free: 6.559 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.1211, allocations: 18.23 kB / 0.4926 GB, free: 6.547 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003632/0.1215, allocations: 166.6 kB / 0.4928 GB, free: 6.355 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.1218, allocations: 0.6846 MB / 0.4934 GB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.956e-05/0.1218, allocations: 4 kB / 0.4934 GB, free: 5.641 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.38e-05/0.1218, allocations: 7.438 kB / 0.4934 GB, free: 5.633 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1218, allocations: 0 / 0.4934 GB, free: 5.633 MB / 382.1 MB Notification: Performance of Templates: time 0.002572/0.1244, allocations: 0.5242 MB / 0.494 GB, free: 5.109 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/IntegratorForceState/IntegratorForceState.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches