Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.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: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009517/0.0009519, allocations: 96.98 kB / 15.69 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009359/0.000936, allocations: 174.4 kB / 16.56 MB, free: 6.379 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.44/1.44, allocations: 205.4 MB / 222.7 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3254/0.3254, allocations: 43.55 MB / 314.5 MB, free: 8.719 MB / 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.0004957/0.0004957, allocations: 12 kB / 384 MB, free: 7.941 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1096, allocations: 58.85 MB / 442.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001681/0.1113, allocations: 1.324 MB / 444.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008132/0.1122, allocations: 0.5467 MB / 444.7 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.861e-05/0.1123, allocations: 4 kB / 444.7 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.911e-05/0.1123, allocations: 3.938 kB / 444.7 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001047/0.1124, allocations: 15.91 kB / 444.7 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003064/0.1127, allocations: 75.84 kB / 444.8 MB, free: 11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001564/0.1129, allocations: 67.86 kB / 444.9 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.113, allocations: 28.19 kB / 444.9 MB, free: 10.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.008e-05/0.1131, allocations: 39.83 kB / 444.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.659e-05/0.1132, allocations: 35.84 kB / 445 MB, free: 10.83 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.479e-05/0.1132, allocations: 0 / 445 MB, free: 10.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.554e-05/0.1132, allocations: 4 kB / 445 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.169e-05/0.1132, allocations: 19.92 kB / 445 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.932e-05/0.1133, allocations: 37.64 kB / 445 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.457e-05/0.1134, allocations: 51.89 kB / 445.1 MB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1134, allocations: 0 / 445.1 MB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1134, allocations: 0 / 445.1 MB, free: 10.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1134, allocations: 0 / 445.1 MB, free: 10.71 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005976/0.114, allocations: 407 kB / 445.5 MB, free: 10.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.114, allocations: 12.03 kB / 445.5 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.033e-05/0.1141, allocations: 34.56 kB / 445.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.1141, allocations: 23.83 kB / 445.5 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002004/0.1143, allocations: 198.8 kB / 445.7 MB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.1144, allocations: 4 kB / 445.7 MB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.155e-05/0.1144, allocations: 12 kB / 445.8 MB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002753/0.1147, allocations: 105.6 kB / 445.9 MB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.1147, allocations: 0 / 445.9 MB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.1147, allocations: 0 / 445.9 MB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.1147, allocations: 7.953 kB / 445.9 MB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001674/0.1149, allocations: 59.95 kB / 445.9 MB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006638/0.1156, allocations: 400.4 kB / 446.3 MB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003428/0.1159, allocations: 118.5 kB / 446.4 MB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.1159, allocations: 4.031 kB / 446.4 MB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002719/0.1162, allocations: 111.5 kB / 446.5 MB, free: 9.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.1162, allocations: 7.938 kB / 446.6 MB, free: 9.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004511/0.1167, allocations: 145.5 kB / 446.7 MB, free: 8.914 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.1167, allocations: 55.39 kB / 446.8 MB, free: 8.848 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.1169, allocations: 154.2 kB / 446.9 MB, free: 8.688 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.1169, allocations: 29.7 kB / 446.9 MB, free: 8.652 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.447e-05/0.117, allocations: 100.3 kB / 447 MB, free: 8.551 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/0.117, allocations: 15.8 kB / 447 MB, free: 8.535 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.553e-06/0.117, allocations: 4 kB / 447 MB, free: 8.531 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1171, allocations: 322.8 kB / 447.4 MB, free: 8.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.1173, allocations: 39.97 kB / 447.4 MB, free: 8.168 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.1174, allocations: 57.69 kB / 447.5 MB, free: 8.105 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001139/0.1175, allocations: 35.94 kB / 447.5 MB, free: 8.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1175, allocations: 4 kB / 447.5 MB, free: 8.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003072/0.1178, allocations: 125.4 kB / 447.6 MB, free: 7.938 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.1179, allocations: 8 kB / 447.6 MB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.1179, allocations: 0 / 447.6 MB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.1179, allocations: 4.031 kB / 447.6 MB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.118, allocations: 23.92 kB / 447.7 MB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.82e-06/0.118, allocations: 320 / 447.7 MB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.633e-05/0.1181, allocations: 20.06 kB / 447.7 MB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.348e-06/0.1181, allocations: 8 kB / 447.7 MB, free: 7.875 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.1182, allocations: 125.8 kB / 447.8 MB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.74e-05/0.1183, allocations: 11.89 kB / 447.8 MB, free: 7.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.134e-05/0.1183, allocations: 12.72 kB / 447.8 MB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1183, allocations: 288 / 447.8 MB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1183, allocations: 0 / 447.8 MB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1183, allocations: 0 / 447.8 MB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005042/0.1188, allocations: 418.2 kB / 448.2 MB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1189, allocations: 0 / 448.2 MB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.799e-05/0.119, allocations: 15.94 kB / 448.3 MB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.119, allocations: 0 / 448.3 MB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.119, allocations: 3.984 kB / 448.3 MB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.119, allocations: 4 kB / 448.3 MB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.119, allocations: 0 / 448.3 MB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004492/0.1195, allocations: 267.3 kB / 448.5 MB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.943e-05/0.1195, allocations: 81.02 kB / 448.6 MB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.046e-05/0.1195, allocations: 4.031 kB / 448.6 MB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.1197, allocations: 36.02 kB / 448.6 MB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.861e-05/0.1197, allocations: 11.97 kB / 448.7 MB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.666e-06/0.1198, allocations: 4 kB / 448.7 MB, free: 6.805 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.692e-05/0.1198, allocations: 108.6 kB / 448.8 MB, free: 6.699 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1198, allocations: 4 kB / 448.8 MB, free: 6.695 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002216/0.1201, allocations: 15.94 kB / 448.8 MB, free: 6.68 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006985/0.1208, allocations: 0.7943 MB / 449.6 MB, free: 5.855 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002697/0.1211, allocations: 87.94 kB / 449.7 MB, free: 5.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1211, allocations: 128 / 449.7 MB, free: 5.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.1212, allocations: 51.91 kB / 449.7 MB, free: 5.719 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.1214, allocations: 15.98 kB / 449.7 MB, free: 5.703 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.1227, allocations: 0.8628 MB / 450.6 MB, free: 4.789 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002483/0.1229, allocations: 0.7042 MB / 451.3 MB, free: 4.059 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.501e-05/0.123, allocations: 16.34 kB / 451.3 MB, free: 4.039 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.359e-05/0.1231, allocations: 35.42 kB / 451.3 MB, free: 4.004 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1231, allocations: 0 / 451.3 MB, free: 4.004 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1932/0.3163, allocations: 2.199 MB / 453.5 MB, free: 1.84 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.3166, allocations: 180.7 kB / 453.7 MB, free: 1.594 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.818/2.135, allocations: 0 / 453.7 MB, free: 1.594 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat does not exist to compare? outputFormat=mat