Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Blocks.IntegratorForceState") translateModel(ModelicaTest.Blocks.IntegratorForceState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gain.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 108.1 kB / 18.45 MB, free: 4.602 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.001013/0.001013, allocations: 180.2 kB / 19.38 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.245/1.245, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1844/0.1844, allocations: 44.18 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 59.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.2998, allocations: 60.81 MB / 0.5195 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.002441/0.3022, allocations: 1.551 MB / 0.5211 GB, free: 2.512 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002331/0.3025, allocations: 60.95 kB / 0.5211 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.636e-05/0.3026, allocations: 1.156 kB / 0.5211 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.06e-05/0.3027, allocations: 6.203 kB / 0.5211 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.012e-05/0.3027, allocations: 8.672 kB / 0.5211 GB, free: 2.457 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001204/0.3028, allocations: 25.17 kB / 0.5212 GB, free: 2.441 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.303, allocations: 40.36 kB / 0.5212 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.3031, allocations: 14.89 kB / 0.5212 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.021e-05/0.3031, allocations: 5.938 kB / 0.5212 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.599e-05/0.3032, allocations: 18.8 kB / 0.5212 GB, free: 2.402 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.914e-05/0.3032, allocations: 3.406 kB / 0.5212 GB, free: 2.402 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.182e-05/0.3032, allocations: 2.219 kB / 0.5212 GB, free: 2.402 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.76e-05/0.3032, allocations: 9.672 kB / 0.5212 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.16e-05/0.3033, allocations: 21.67 kB / 0.5213 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.3034, allocations: 34.58 kB / 0.5213 GB, free: 2.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3034, allocations: 0 / 0.5213 GB, free: 2.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3034, allocations: 1.031 kB / 0.5213 GB, free: 2.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.3034, allocations: 3.938 kB / 0.5213 GB, free: 2.359 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.0003796/0.3038, allocations: 347 kB / 0.5216 GB, free: 1.996 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.3038, allocations: 9.781 kB / 0.5216 GB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.143e-05/0.3039, allocations: 7.781 kB / 0.5217 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001728/0.304, allocations: 181.9 kB / 0.5218 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.3041, allocations: 14.61 kB / 0.5218 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.034e-05/0.3041, allocations: 3.547 kB / 0.5218 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001387/0.3042, allocations: 71.48 kB / 0.5219 GB, free: 1.711 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.3043, allocations: 1.188 kB / 0.5219 GB, free: 1.711 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.3043, allocations: 5.125 kB / 0.5219 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3043, allocations: 0 / 0.5219 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.645e-05/0.3044, allocations: 27.03 kB / 0.5219 GB, free: 1.699 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003664/0.3047, allocations: 442.4 kB / 0.5224 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001475/0.3049, allocations: 46.83 kB / 0.5224 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.638e-05/0.305, allocations: 17.77 kB / 0.5224 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.305, allocations: 0 / 0.5224 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.865e-05/0.305, allocations: 40.22 kB / 0.5225 GB, free: 1.156 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.305, allocations: 0 / 0.5225 GB, free: 1.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004137/0.3054, allocations: 109.7 kB / 0.5226 GB, free: 1.098 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.149e-05/0.3055, allocations: 52.41 kB / 0.5226 GB, free: 1.035 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.118e-05/0.3055, allocations: 119.3 kB / 0.5227 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.103e-06/0.3055, allocations: 25.7 kB / 0.5228 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.214e-05/0.3056, allocations: 96.36 kB / 0.5229 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.242e-05/0.3056, allocations: 15.67 kB / 0.5229 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.029e-05/0.3056, allocations: 19.27 kB / 0.5229 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.007e-05/0.3057, allocations: 322.8 kB / 0.5232 GB, free: 460 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.759e-05/0.3057, allocations: 14.61 kB / 0.5232 GB, free: 456 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.954e-05/0.3058, allocations: 47.11 kB / 0.5233 GB, free: 412 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.072e-05/0.3059, allocations: 55.84 kB / 0.5233 GB, free: 368 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.3059, allocations: 0 / 0.5233 GB, free: 368 kB / 382.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001367/0.306, allocations: 88.91 kB / 0.5234 GB, free: 312 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.306, allocations: 9.688 kB / 0.5234 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.3061, allocations: 1.094 kB / 0.5234 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.3061, allocations: 1.719 kB / 0.5234 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.053e-05/0.3061, allocations: 12.5 kB / 0.5234 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.3062, allocations: 5.094 kB / 0.5234 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.723e-05/0.3062, allocations: 7.406 kB / 0.5234 GB, free: 300 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.3062, allocations: 3.922 kB / 0.5234 GB, free: 300 kB / 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 4.808e-05/0.3063, allocations: 120.8 kB / 0.5235 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.48e-05/0.3063, allocations: 6.344 kB / 0.5235 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.192e-05/0.3063, allocations: 6.969 kB / 0.5236 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3063, allocations: 0.75 kB / 0.5236 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3063, allocations: 1.188 kB / 0.5236 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3063, allocations: 0 / 0.5236 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001622/0.3065, allocations: 175.2 kB / 0.5237 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3065, allocations: 0 / 0.5237 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.237e-05/0.3066, allocations: 10.66 kB / 0.5237 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.3066, allocations: 4.516 kB / 0.5237 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.3066, allocations: 4.906 kB / 0.5237 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.3066, allocations: 5.641 kB / 0.5237 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3066, allocations: 0 / 0.5237 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002246/0.3069, allocations: 176.6 kB / 0.5239 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.546e-05/0.3069, allocations: 82.8 kB / 0.524 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.3069, allocations: 1.219 kB / 0.524 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.168e-05/0.307, allocations: 4.109 kB / 0.524 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.307, allocations: 10.22 kB / 0.524 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.307, allocations: 1.984 kB / 0.524 GB, free: 15.69 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.444e-05/0.3071, allocations: 90.05 kB / 0.5241 GB, free: 15.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3071, allocations: 0 / 0.5241 GB, free: 15.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002193/0.3073, allocations: 5.656 kB / 0.5241 GB, free: 15.61 MB / 398.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 8.79e-05/0.3074, allocations: 96.86 kB / 0.5242 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001545/0.3076, allocations: 45.84 kB / 0.5242 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3076, allocations: 4.188 kB / 0.5242 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.973e-05/0.3076, allocations: 17.69 kB / 0.5243 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.3079, allocations: 13.34 kB / 0.5243 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003715/0.3083, allocations: 179.5 kB / 0.5244 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002041/0.3085, allocations: 0.689 MB / 0.5251 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.753e-05/0.3085, allocations: 10.22 kB / 0.5251 GB, free: 14.62 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3086, allocations: 3.938 kB / 0.5251 GB, free: 14.62 MB / 398.1 MB Notification: Performance of Templates: time 0.00217/0.3107, allocations: 0.7919 MB / 0.5259 GB, free: 14.55 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegratorForceState/IntegratorForceState.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches