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.001337/0.001337, allocations: 102.6 kB / 16.4 MB, free: 6.465 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.001336/0.001336, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.368/1.368, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2147/0.2147, allocations: 43.53 MB / 314.1 MB, free: 452 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.002071/0.002071, allocations: 73.47 kB / 441.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1065, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002841/0.1094, allocations: 1.613 MB / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.1104, allocations: 0.5969 MB / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.845e-05/0.1105, allocations: 0 / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.1106, allocations: 15.86 kB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.382e-05/0.1107, allocations: 11.88 kB / 0.4896 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003507/0.111, allocations: 95.75 kB / 0.4897 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001704/0.1112, allocations: 115.7 kB / 0.4898 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.1114, allocations: 39.86 kB / 0.4898 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.109e-05/0.1114, allocations: 47.84 kB / 0.4899 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.78e-05/0.1115, allocations: 35.83 kB / 0.4899 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.1116, allocations: 8 kB / 0.4899 GB, free: 9.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.931e-05/0.1116, allocations: 8 kB / 0.4899 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.311e-05/0.1116, allocations: 23.92 kB / 0.4899 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.83e-05/0.1117, allocations: 47.72 kB / 0.49 GB, free: 9.617 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.1118, allocations: 91.52 kB / 0.4901 GB, free: 9.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1119, allocations: 0 / 0.4901 GB, free: 9.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.1119, allocations: 4 kB / 0.4901 GB, free: 9.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.1119, allocations: 0 / 0.4901 GB, free: 9.523 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.0006819/0.1126, allocations: 411.1 kB / 0.4905 GB, free: 9.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.1126, allocations: 11.89 kB / 0.4905 GB, free: 9.062 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.158e-05/0.1127, allocations: 46.73 kB / 0.4905 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/0.1127, allocations: 8.891 kB / 0.4905 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002803/0.113, allocations: 204.1 kB / 0.4907 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.113, allocations: 12.36 kB / 0.4907 GB, free: 8.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.293e-05/0.113, allocations: 4.375 kB / 0.4907 GB, free: 8.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.1133, allocations: 108.3 kB / 0.4908 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1134, allocations: 0 / 0.4908 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.1134, allocations: 4 kB / 0.4909 GB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.1134, allocations: 0 / 0.4909 GB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001665/0.1136, allocations: 51.97 kB / 0.4909 GB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007027/0.1143, allocations: 396.5 kB / 0.4913 GB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003628/0.1146, allocations: 102.5 kB / 0.4914 GB, free: 8.035 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.1148, allocations: 44.8 kB / 0.4914 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.1148, allocations: 3.938 kB / 0.4914 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002652/0.1151, allocations: 99.34 kB / 0.4915 GB, free: 7.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.1151, allocations: 0 / 0.4915 GB, free: 7.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005297/0.1156, allocations: 141.5 kB / 0.4917 GB, free: 7.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.1157, allocations: 59.39 kB / 0.4917 GB, free: 7.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001518/0.1158, allocations: 153.7 kB / 0.4919 GB, free: 7.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.1159, allocations: 25.7 kB / 0.4919 GB, free: 7.469 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.406e-05/0.1159, allocations: 108.1 kB / 0.492 GB, free: 7.359 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.663e-05/0.116, allocations: 19.94 kB / 0.492 GB, free: 7.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.16e-05/0.116, allocations: 29.7 kB / 0.492 GB, free: 7.305 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1162, allocations: 322.8 kB / 0.4923 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.1163, allocations: 35.98 kB / 0.4924 GB, free: 6.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.1165, allocations: 49.69 kB / 0.4924 GB, free: 6.891 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002194/0.1167, allocations: 81.61 kB / 0.4925 GB, free: 6.805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1167, allocations: 0 / 0.4925 GB, free: 6.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003042/0.117, allocations: 117.5 kB / 0.4926 GB, free: 6.684 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1171, allocations: 7.938 kB / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.1171, allocations: 0 / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1171, allocations: 4 kB / 0.4926 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.1172, allocations: 20.02 kB / 0.4926 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.1172, allocations: 288 / 0.4926 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.523e-05/0.1173, allocations: 15.94 kB / 0.4927 GB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.1173, allocations: 8 kB / 0.4927 GB, free: 6.629 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,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.0001073/0.1174, allocations: 125.7 kB / 0.4928 GB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/0.1175, allocations: 15.88 kB / 0.4928 GB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.195e-05/0.1175, allocations: 12.72 kB / 0.4928 GB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1175, allocations: 4 kB / 0.4928 GB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.1175, allocations: 0 / 0.4928 GB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.1175, allocations: 0 / 0.4928 GB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005899/0.1181, allocations: 390.4 kB / 0.4932 GB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1181, allocations: 0 / 0.4932 GB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.1e-05/0.1183, allocations: 23.94 kB / 0.4932 GB, free: 6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1183, allocations: 0 / 0.4932 GB, free: 6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.1183, allocations: 7.922 kB / 0.4932 GB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1183, allocations: 0 / 0.4932 GB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1183, allocations: 0 / 0.4932 GB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00049/0.1188, allocations: 251.3 kB / 0.4935 GB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.256e-05/0.1188, allocations: 85.09 kB / 0.4935 GB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.1189, allocations: 0 / 0.4935 GB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.119, allocations: 19.97 kB / 0.4936 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.47e-05/0.1191, allocations: 15.98 kB / 0.4936 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/0.1191, allocations: 8.062 kB / 0.4936 GB, free: 5.586 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.683e-05/0.1192, allocations: 115.9 kB / 0.4937 GB, free: 5.473 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1192, allocations: 0 / 0.4937 GB, free: 5.473 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002385/0.1195, allocations: 19.94 kB / 0.4937 GB, free: 5.453 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 (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.0008078/0.1203, allocations: 0.7826 MB / 0.4945 GB, free: 4.645 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003049/0.1206, allocations: 83.95 kB / 0.4946 GB, free: 4.562 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1206, allocations: 0 / 0.4946 GB, free: 4.562 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001454/0.1207, allocations: 39.98 kB / 0.4946 GB, free: 4.523 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.1211, allocations: 18.64 kB / 0.4946 GB, free: 4.508 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/0.1233, allocations: 1.66 MB / 0.4962 GB, free: 2.762 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.1236, allocations: 0.6924 MB / 0.4969 GB, free: 2.043 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.17e-05/0.1237, allocations: 12.55 kB / 0.4969 GB, free: 2.027 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.416e-05/0.1237, allocations: 31.42 kB / 0.4969 GB, free: 1.996 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1238, allocations: 0 / 0.4969 GB, free: 1.996 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.1501, allocations: 2.645 MB / 0.4995 GB, free: 15.35 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/7.962, allocations: 7.922 kB / 0.4995 GB, free: 15.34 MB / 398.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/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) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches