Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00143/0.00143, allocations: 105.9 kB / 17.32 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001639/0.001639, allocations: 209.8 kB / 18.26 MB, free: 5.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2733/0.2733, allocations: 46.1 MB / 343.8 MB, free: 11.74 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 74.28 kB / 417.1 MB, free: 19.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1179, allocations: 62.44 MB / 479.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002457/0.1204, allocations: 0.8645 MB / 480.5 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002593/0.1207, allocations: 51.83 kB / 480.5 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.54e-05/0.1208, allocations: 4 kB / 480.5 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001166/0.1209, allocations: 7.922 kB / 480.5 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.165e-05/0.1209, allocations: 7.984 kB / 480.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001208/0.1211, allocations: 12 kB / 480.5 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.1212, allocations: 39.91 kB / 480.6 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.1213, allocations: 15.94 kB / 480.6 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.681e-05/0.1213, allocations: 11.98 kB / 480.6 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.809e-05/0.1214, allocations: 11.88 kB / 480.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.597e-05/0.1214, allocations: 4 kB / 480.6 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.155e-05/0.1214, allocations: 4 kB / 480.6 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.961e-05/0.1214, allocations: 7.984 kB / 480.6 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.758e-05/0.1215, allocations: 23.86 kB / 480.7 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.578e-05/0.1216, allocations: 27.91 kB / 480.7 MB, free: 4.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1216, allocations: 7.875 kB / 480.7 MB, free: 4.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1216, allocations: 0 / 480.7 MB, free: 4.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.1216, allocations: 0 / 480.7 MB, free: 4.41 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004578/0.1221, allocations: 351.7 kB / 481 MB, free: 4.016 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1221, allocations: 8.031 kB / 481 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.785e-05/0.1222, allocations: 42.73 kB / 481.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.672e-05/0.1222, allocations: 4.844 kB / 481.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.1224, allocations: 172.4 kB / 481.3 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/0.1224, allocations: 8.375 kB / 481.3 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.531e-05/0.1224, allocations: 12.22 kB / 481.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001341/0.1226, allocations: 54.23 kB / 481.3 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.1226, allocations: 11.86 kB / 481.3 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.1226, allocations: 0 / 481.3 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1226, allocations: 0 / 481.3 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.863e-05/0.1227, allocations: 15.98 kB / 481.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005746/0.1233, allocations: 288.7 kB / 481.6 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.326e-05/0.1233, allocations: 30.5 kB / 481.7 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.197e-05/0.1234, allocations: 8.859 kB / 481.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.1234, allocations: 4.062 kB / 481.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001478/0.1235, allocations: 47.41 kB / 481.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.563e-06/0.1236, allocations: 0 / 481.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001463/0.1237, allocations: 57.62 kB / 481.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/0.1237, allocations: 51.41 kB / 481.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.1239, allocations: 113.8 kB / 481.9 MB, free: 2.949 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.1239, allocations: 25.7 kB / 482 MB, free: 2.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.814e-05/0.1239, allocations: 92.05 kB / 482.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.679e-05/0.124, allocations: 11.89 kB / 482.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/0.124, allocations: 13.72 kB / 482.1 MB, free: 2.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.1241, allocations: 322.8 kB / 482.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.552e-05/0.1241, allocations: 4 kB / 482.4 MB, free: 2.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.661e-05/0.1242, allocations: 25.7 kB / 482.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.969e-05/0.1242, allocations: 25.66 kB / 482.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1242, allocations: 384 / 482.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.169e-05/0.1243, allocations: 53.69 kB / 482.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.1243, allocations: 6.656 kB / 482.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1243, allocations: 0 / 482.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.1244, allocations: 7.969 kB / 482.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.35e-05/0.1244, allocations: 7.938 kB / 482.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.1244, allocations: 0 / 482.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.386e-05/0.1245, allocations: 11.84 kB / 482.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.545e-06/0.1245, allocations: 3.984 kB / 482.5 MB, free: 2.309 MB / 350.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 8.945e-05/0.1246, allocations: 113.8 kB / 482.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.149e-05/0.1246, allocations: 4 kB / 482.7 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.313e-05/0.1246, allocations: 4.234 kB / 482.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1246, allocations: 3.938 kB / 482.7 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1246, allocations: 4 kB / 482.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1246, allocations: 7.922 kB / 482.7 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002788/0.1249, allocations: 302.5 kB / 483 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1249, allocations: 0 / 483 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.062e-05/0.125, allocations: 0 / 483 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.125, allocations: 4 kB / 483 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.125, allocations: 7.938 kB / 483 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.125, allocations: 0 / 483 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.125, allocations: 0 / 483 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001472/0.1252, allocations: 155.4 kB / 483.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.944e-05/0.1252, allocations: 81.05 kB / 483.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.1252, allocations: 7.969 kB / 483.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.582e-05/0.1253, allocations: 0 / 483.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.091e-05/0.1253, allocations: 3.938 kB / 483.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.1253, allocations: 4 kB / 483.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.286e-05/0.1254, allocations: 91.27 kB / 483.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1254, allocations: 4.062 kB / 483.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002213/0.1256, allocations: 11.91 kB / 483.3 MB, free: 1.41 MB / 350.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 0.0004267/0.1261, allocations: 0.6696 MB / 484 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.841e-05/0.1262, allocations: 23.88 kB / 484 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1262, allocations: 0 / 484 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.36e-05/0.1262, allocations: 16.39 kB / 484 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.1265, allocations: 15.06 kB / 484.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001189/0.1277, allocations: 1.292 MB / 485.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.1279, allocations: 0.6885 MB / 486 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.143e-05/0.128, allocations: 0 / 486 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.739e-05/0.128, allocations: 23.42 kB / 486.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.128, allocations: 0 / 486.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01327/0.1413, allocations: 1.417 MB / 487.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001851/0.1415, allocations: 191.2 kB / 487.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.842/1.984, allocations: 3.938 kB / 487.7 MB, free: 12.99 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches