Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_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.00174/0.00174, allocations: 107.7 kB / 17.21 MB, free: 6.27 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.001942/0.001943, allocations: 194 kB / 18.12 MB, free: 5.363 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.394/1.394, allocations: 222.9 MB / 241.8 MB, free: 15.55 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.2084/0.2084, allocations: 44.17 MB / 336.1 MB, free: 3.023 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 61.31 kB / 407.8 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1199, allocations: 60.82 MB / 468.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002197/0.1221, allocations: 0.8728 MB / 469.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002149/0.1224, allocations: 55.81 kB / 469.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.908e-05/0.1225, allocations: 0 / 469.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.1226, allocations: 3.938 kB / 469.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.849e-05/0.1226, allocations: 0 / 469.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001107/0.1228, allocations: 19.98 kB / 469.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.594e-05/0.1229, allocations: 39.86 kB / 469.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.123, allocations: 19.97 kB / 469.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.601e-05/0.123, allocations: 15.92 kB / 469.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.632e-05/0.1231, allocations: 15.92 kB / 469.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.39e-05/0.1231, allocations: 0 / 469.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.418e-05/0.1231, allocations: 4 kB / 469.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.598e-05/0.1231, allocations: 3.938 kB / 469.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.265e-05/0.1232, allocations: 19.81 kB / 469.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.934e-05/0.1233, allocations: 32.17 kB / 469.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1233, allocations: 4 kB / 469.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1233, allocations: 0 / 469.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.1233, allocations: 0 / 469.7 MB, free: 13.66 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.0004261/0.1237, allocations: 355.4 kB / 470.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1238, allocations: 8.031 kB / 470.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.475e-05/0.1238, allocations: 30.75 kB / 470.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.608e-05/0.1238, allocations: 8.844 kB / 470.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001719/0.124, allocations: 184.2 kB / 470.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.766e-06/0.124, allocations: 4.312 kB / 470.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.958e-05/0.1241, allocations: 12.38 kB / 470.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001113/0.1242, allocations: 54.19 kB / 470.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1242, allocations: 7.922 kB / 470.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.797e-06/0.1242, allocations: 0 / 470.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1242, allocations: 0 / 470.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.529e-05/0.1243, allocations: 12 kB / 470.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004849/0.1247, allocations: 284.7 kB / 470.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.232e-05/0.1248, allocations: 30.52 kB / 470.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.871e-05/0.1248, allocations: 8.859 kB / 470.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.357e-06/0.1249, allocations: 0 / 470.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001127/0.125, allocations: 51.47 kB / 470.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.143e-06/0.125, allocations: 0 / 470.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001388/0.1251, allocations: 53.81 kB / 470.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.1252, allocations: 55.41 kB / 470.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.001e-05/0.1253, allocations: 117.8 kB / 471 MB, free: 12.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.1253, allocations: 25.7 kB / 471 MB, free: 12.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.469e-05/0.1254, allocations: 96.11 kB / 471.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.417e-05/0.1254, allocations: 3.906 kB / 471.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.265e-05/0.1254, allocations: 17.72 kB / 471.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1255, allocations: 326.8 kB / 471.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.603e-05/0.1256, allocations: 0 / 471.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.657e-05/0.1256, allocations: 30.08 kB / 471.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.139e-05/0.1256, allocations: 29.64 kB / 471.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1256, allocations: 0 / 471.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.319e-05/0.1257, allocations: 53.69 kB / 471.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.1258, allocations: 10.44 kB / 471.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.1258, allocations: 3.938 kB / 471.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.1258, allocations: 4 kB / 471.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.351e-05/0.1258, allocations: 8.031 kB / 471.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1258, allocations: 0 / 471.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.432e-05/0.1259, allocations: 11.84 kB / 471.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-06/0.1259, allocations: 0 / 471.6 MB, free: 11.55 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 7.368e-05/0.126, allocations: 117.8 kB / 471.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.126, allocations: 4 kB / 471.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.274e-05/0.126, allocations: 11.83 kB / 471.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.126, allocations: 0 / 471.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.126, allocations: 0 / 471.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.126, allocations: 7.938 kB / 471.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002721/0.1263, allocations: 298.5 kB / 472 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1263, allocations: 0 / 472 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.064e-05/0.1264, allocations: 0 / 472 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1264, allocations: 4 kB / 472 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.809e-06/0.1264, allocations: 3.938 kB / 472 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1264, allocations: 0 / 472 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.1264, allocations: 0 / 472 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001547/0.1266, allocations: 155.5 kB / 472.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.793e-05/0.1266, allocations: 88.98 kB / 472.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.1266, allocations: 7.922 kB / 472.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.659e-05/0.1267, allocations: 0 / 472.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.236e-05/0.1267, allocations: 0 / 472.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.1267, allocations: 4 kB / 472.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.974e-05/0.1268, allocations: 91.27 kB / 472.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1268, allocations: 0 / 472.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002209/0.127, allocations: 4 kB / 472.4 MB, free: 10.66 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.0003551/0.1274, allocations: 0.686 MB / 473 MB, free: 9.949 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.072e-05/0.1275, allocations: 23.88 kB / 473.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1275, allocations: 288 / 473.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.91e-05/0.1275, allocations: 4 kB / 473.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.1278, allocations: 15.92 kB / 473.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001114/0.1289, allocations: 1.3 MB / 474.4 MB, free: 8.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/0.1291, allocations: 0.6809 MB / 475.1 MB, free: 7.812 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.472e-05/0.1292, allocations: 7.984 kB / 475.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.783e-05/0.1292, allocations: 15.44 kB / 475.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1292, allocations: 4 kB / 475.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01254/0.1418, allocations: 1.399 MB / 476.5 MB, free: 6.477 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.142, allocations: 195.2 kB / 476.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.739/1.881, allocations: 3.094 kB / 476.7 MB, free: 6.223 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches