Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",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.001393/0.0014, allocations: 111.8 kB / 16.41 MB, free: 6.496 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.001306/0.001306, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.487/1.487, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.235/0.235, allocations: 43.52 MB / 314.1 MB, free: 460 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.002459/0.002459, allocations: 77.44 kB / 441.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1188, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002166/0.121, allocations: 0.8248 MB / 499.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002481/0.1212, allocations: 47.89 kB / 500 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.308e-05/0.1213, allocations: 7.938 kB / 500 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001255/0.1215, allocations: 3.938 kB / 500 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.394e-05/0.1215, allocations: 11.86 kB / 500 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001256/0.1216, allocations: 19.97 kB / 500 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000119/0.1217, allocations: 35.92 kB / 0.4883 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.1219, allocations: 19.97 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.839e-05/0.1219, allocations: 11.94 kB / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.416e-05/0.122, allocations: 11.92 kB / 0.4884 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.122, allocations: 8 kB / 0.4884 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.431e-05/0.122, allocations: 4 kB / 0.4884 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.359e-05/0.1221, allocations: 7.938 kB / 0.4884 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.913e-05/0.1221, allocations: 15.92 kB / 0.4884 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001219/0.1222, allocations: 43.77 kB / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1222, allocations: 0 / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1222, allocations: 0 / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.1223, allocations: 0 / 0.4884 GB, free: 11.26 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005225/0.1228, allocations: 351.3 kB / 0.4888 GB, free: 10.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.1228, allocations: 11.89 kB / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.283e-05/0.1229, allocations: 42.69 kB / 0.4888 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.093e-05/0.1229, allocations: 8.891 kB / 0.4888 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.1232, allocations: 176.4 kB / 0.489 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.1232, allocations: 8.359 kB / 0.489 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.276e-05/0.1232, allocations: 4.375 kB / 0.489 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/0.1234, allocations: 50.25 kB / 0.4891 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.1234, allocations: 3.938 kB / 0.4891 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.1234, allocations: 0 / 0.4891 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.1234, allocations: 0 / 0.4891 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.725e-05/0.1235, allocations: 23.94 kB / 0.4891 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005696/0.1241, allocations: 292.7 kB / 0.4894 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.242e-05/0.1242, allocations: 22.58 kB / 0.4894 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.281e-05/0.1242, allocations: 16.78 kB / 0.4894 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.262e-05/0.1242, allocations: 4 kB / 0.4894 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.778e-05/0.1243, allocations: 51.42 kB / 0.4895 GB, free: 10.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.1243, allocations: 3.938 kB / 0.4895 GB, free: 10.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001572/0.1245, allocations: 49.69 kB / 0.4895 GB, free: 9.977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/0.1245, allocations: 55.39 kB / 0.4896 GB, free: 9.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.1246, allocations: 117.8 kB / 0.4897 GB, free: 9.785 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.1247, allocations: 25.7 kB / 0.4897 GB, free: 9.754 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.041e-05/0.1248, allocations: 92.09 kB / 0.4898 GB, free: 9.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.549e-05/0.1248, allocations: 7.953 kB / 0.4898 GB, free: 9.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.663e-05/0.1248, allocations: 21.7 kB / 0.4898 GB, free: 9.625 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.125, allocations: 322.8 kB / 0.4901 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.686e-05/0.125, allocations: 0 / 0.4901 GB, free: 9.301 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.393e-05/0.125, allocations: 25.89 kB / 0.4901 GB, free: 9.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.435e-05/0.1251, allocations: 25.8 kB / 0.4902 GB, free: 9.238 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1251, allocations: 0 / 0.4902 GB, free: 9.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.614e-05/0.1252, allocations: 65.58 kB / 0.4902 GB, free: 9.168 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1252, allocations: 4 kB / 0.4902 GB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1252, allocations: 0 / 0.4902 GB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.1253, allocations: 0 / 0.4902 GB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.317e-05/0.1253, allocations: 4 kB / 0.4902 GB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.1253, allocations: 0 / 0.4902 GB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.98e-05/0.1253, allocations: 7.938 kB / 0.4902 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-06/0.1254, allocations: 0 / 0.4902 GB, free: 9.152 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: 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 9.969e-05/0.1255, allocations: 125.7 kB / 0.4904 GB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.143e-05/0.1255, allocations: 8.031 kB / 0.4904 GB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.698e-05/0.1255, allocations: 3.906 kB / 0.4904 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.1255, allocations: 0 / 0.4904 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1255, allocations: 0 / 0.4904 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.1255, allocations: 3.938 kB / 0.4904 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003449/0.1259, allocations: 306.6 kB / 0.4907 GB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1259, allocations: 0 / 0.4907 GB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.231e-05/0.1259, allocations: 4 kB / 0.4907 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.126, allocations: 7.938 kB / 0.4907 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.126, allocations: 3.938 kB / 0.4907 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.126, allocations: 8.312 kB / 0.4907 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.126, allocations: 0 / 0.4907 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001694/0.1262, allocations: 143.5 kB / 0.4908 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.631e-05/0.1262, allocations: 89.08 kB / 0.4909 GB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.689e-05/0.1262, allocations: 7.875 kB / 0.4909 GB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.653e-05/0.1263, allocations: 4 kB / 0.4909 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.554e-05/0.1263, allocations: 0 / 0.4909 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.1264, allocations: 8.062 kB / 0.4909 GB, free: 8.336 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.809e-05/0.1264, allocations: 91.27 kB / 0.491 GB, free: 8.246 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1264, allocations: 0 / 0.491 GB, free: 8.246 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002336/0.1267, allocations: 8 kB / 0.491 GB, free: 8.238 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: 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.0004775/0.1272, allocations: 0.6812 MB / 0.4917 GB, free: 7.531 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.716e-05/0.1273, allocations: 28.17 kB / 0.4917 GB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1273, allocations: 3.938 kB / 0.4917 GB, free: 7.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.913e-05/0.1273, allocations: 7.984 kB / 0.4917 GB, free: 7.492 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.1276, allocations: 10.66 kB / 0.4917 GB, free: 7.484 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.1289, allocations: 1.294 MB / 0.493 GB, free: 6.105 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.1292, allocations: 0.6807 MB / 0.4937 GB, free: 5.398 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.752e-05/0.1293, allocations: 4 kB / 0.4937 GB, free: 5.395 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.284e-05/0.1294, allocations: 19.42 kB / 0.4937 GB, free: 5.375 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1294, allocations: 0 / 0.4937 GB, free: 5.375 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/0.1546, allocations: 1.557 MB / 0.4952 GB, free: 3.812 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.002/8.157, allocations: 23.8 kB / 0.4952 GB, free: 3.793 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches