Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007651/0.0007651, allocations: 92.52 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009769/0.000977, allocations: 205.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1895/0.1895, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000242/0.000242, allocations: 8 kB / 419.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1078, allocations: 63.56 MB / 483.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001935/0.1098, allocations: 1.357 MB / 484.5 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009711/0.1108, allocations: 0.5728 MB / 485.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.54e-05/0.1109, allocations: 0 / 485.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.111, allocations: 11.88 kB / 485.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.533e-05/0.1111, allocations: 11.88 kB / 485.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003236/0.1114, allocations: 75.89 kB / 485.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001495/0.1115, allocations: 103.8 kB / 485.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.1117, allocations: 24.28 kB / 485.3 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.089e-05/0.1117, allocations: 39.83 kB / 485.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.961e-05/0.1118, allocations: 39.72 kB / 485.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.839e-05/0.1118, allocations: 4 kB / 485.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.537e-05/0.1119, allocations: 4 kB / 485.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.681e-05/0.1119, allocations: 15.92 kB / 485.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.365e-05/0.112, allocations: 57.5 kB / 485.5 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001163/0.1121, allocations: 79.62 kB / 485.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.1121, allocations: 4 kB / 485.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1121, allocations: 0 / 485.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.1121, allocations: 0 / 485.6 MB, free: 1.664 MB / 350.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.0006577/0.1128, allocations: 403.2 kB / 486 MB, free: 1.223 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/0.1128, allocations: 8.875 kB / 486 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.966e-05/0.1129, allocations: 34.75 kB / 486 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.773e-05/0.1129, allocations: 16.83 kB / 486 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.1132, allocations: 204.1 kB / 486.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.1132, allocations: 8.375 kB / 486.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.352e-05/0.1132, allocations: 8.375 kB / 486.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002895/0.1135, allocations: 113.7 kB / 486.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.1135, allocations: 7.984 kB / 486.4 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.1136, allocations: 4 kB / 486.4 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1136, allocations: 0 / 486.4 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00017/0.1137, allocations: 58.77 kB / 486.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007065/0.1145, allocations: 404.4 kB / 486.8 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003665/0.1148, allocations: 114.5 kB / 486.9 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.115, allocations: 40.91 kB / 487 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.408e-05/0.115, allocations: 0 / 487 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000294/0.1153, allocations: 111.3 kB / 487.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.1153, allocations: 0 / 487.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004729/0.1158, allocations: 157.5 kB / 487.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.1159, allocations: 55.34 kB / 487.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001314/0.116, allocations: 157.7 kB / 487.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.116, allocations: 29.7 kB / 487.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.941e-05/0.1161, allocations: 92.14 kB / 487.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.263e-05/0.1161, allocations: 23.73 kB / 487.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.13e-05/0.1162, allocations: 17.72 kB / 487.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1163, allocations: 318.8 kB / 487.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.1164, allocations: 47.97 kB / 487.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.1166, allocations: 45.7 kB / 488 MB, free: 15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000236/0.1168, allocations: 89.61 kB / 488.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1168, allocations: 0 / 488.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002927/0.1171, allocations: 133.4 kB / 488.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.1171, allocations: 7.938 kB / 488.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.1172, allocations: 4 kB / 488.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.1172, allocations: 0 / 488.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.1173, allocations: 15.98 kB / 488.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.1173, allocations: 4.031 kB / 488.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.589e-05/0.1174, allocations: 24.06 kB / 488.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-06/0.1174, allocations: 0 / 488.3 MB, free: 14.72 MB / 366.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,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.1175, allocations: 129.8 kB / 488.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.353e-05/0.1176, allocations: 11.84 kB / 488.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.532e-05/0.1176, allocations: 8.719 kB / 488.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.1176, allocations: 8 kB / 488.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1176, allocations: 0 / 488.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1176, allocations: 288 / 488.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005439/0.1182, allocations: 406.3 kB / 488.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1182, allocations: 0 / 488.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.91e-05/0.1183, allocations: 23.86 kB / 488.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1183, allocations: 0 / 488.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.1183, allocations: 4 kB / 488.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1183, allocations: 0 / 488.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1183, allocations: 0 / 488.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005037/0.1188, allocations: 271.2 kB / 489.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.881e-05/0.1189, allocations: 81.02 kB / 489.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.1189, allocations: 4.031 kB / 489.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.1191, allocations: 27.97 kB / 489.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.614e-05/0.1191, allocations: 11.98 kB / 489.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.367e-06/0.1191, allocations: 7.984 kB / 489.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.309e-05/0.1192, allocations: 106.9 kB / 489.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1192, allocations: 8 kB / 489.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002253/0.1195, allocations: 16 kB / 489.4 MB, free: 13.52 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007601/0.1202, allocations: 0.7908 MB / 490.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003034/0.1206, allocations: 96.03 kB / 490.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1206, allocations: 0 / 490.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.1207, allocations: 52 kB / 490.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.121, allocations: 27.97 kB / 490.3 MB, free: 12.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.1234, allocations: 1.73 MB / 492.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.1237, allocations: 0.6965 MB / 492.8 MB, free: 9.988 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.264e-05/0.1238, allocations: 16.55 kB / 492.8 MB, free: 9.973 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.017e-05/0.1239, allocations: 31.38 kB / 492.8 MB, free: 9.941 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1239, allocations: 0 / 492.8 MB, free: 9.941 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01217/0.136, allocations: 2.224 MB / 495 MB, free: 7.828 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/0.1363, allocations: 184 kB / 495.2 MB, free: 7.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.821/1.958, allocations: 4 kB / 495.2 MB, free: 7.574 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches