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.001172/0.001171, allocations: 104 kB / 16.4 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.001172/0.001172, allocations: 189.5 kB / 17.34 MB, free: 5.77 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.426/1.426, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2166/0.2166, allocations: 43.53 MB / 314.1 MB, free: 468 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.001543/0.001543, allocations: 71.84 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1152, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00298/0.1182, allocations: 1.625 MB / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.1193, allocations: 0.5969 MB / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.708e-05/0.1194, allocations: 4 kB / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.1195, allocations: 11.86 kB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.336e-05/0.1196, allocations: 11.88 kB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003717/0.12, allocations: 95.75 kB / 0.4897 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000171/0.1202, allocations: 115.8 kB / 0.4898 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.1203, allocations: 31.88 kB / 0.4898 GB, free: 9.805 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.416e-05/0.1204, allocations: 51.77 kB / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.401e-05/0.1205, allocations: 43.83 kB / 0.4899 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.693e-05/0.1205, allocations: 8 kB / 0.4899 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.773e-05/0.1205, allocations: 8 kB / 0.4899 GB, free: 9.695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.909e-05/0.1205, allocations: 19.92 kB / 0.4899 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.327e-05/0.1206, allocations: 47.73 kB / 0.49 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001507/0.1208, allocations: 87.64 kB / 0.4901 GB, free: 9.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1208, allocations: 3.984 kB / 0.4901 GB, free: 9.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1208, allocations: 0 / 0.4901 GB, free: 9.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1208, allocations: 0 / 0.4901 GB, free: 9.539 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.000631/0.1214, allocations: 407.1 kB / 0.4905 GB, free: 9.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.1215, allocations: 11.89 kB / 0.4905 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.194e-05/0.1215, allocations: 42.73 kB / 0.4905 GB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.586e-05/0.1216, allocations: 12.84 kB / 0.4905 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.1219, allocations: 204.2 kB / 0.4907 GB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.1219, allocations: 8.375 kB / 0.4907 GB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.947e-05/0.1219, allocations: 4.375 kB / 0.4907 GB, free: 8.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000287/0.1222, allocations: 105.7 kB / 0.4908 GB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.1222, allocations: 7.938 kB / 0.4908 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.1222, allocations: 4 kB / 0.4908 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.1222, allocations: 4 kB / 0.4908 GB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001603/0.1224, allocations: 47.95 kB / 0.4909 GB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006794/0.1231, allocations: 392.4 kB / 0.4913 GB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003382/0.1235, allocations: 102.5 kB / 0.4914 GB, free: 8.055 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.1236, allocations: 36.88 kB / 0.4914 GB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.07e-05/0.1236, allocations: 3.938 kB / 0.4914 GB, free: 8.012 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002647/0.1239, allocations: 107.3 kB / 0.4915 GB, free: 7.895 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.522e-06/0.1239, allocations: 0 / 0.4915 GB, free: 7.895 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004505/0.1244, allocations: 141.4 kB / 0.4916 GB, free: 7.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.892e-05/0.1244, allocations: 51.41 kB / 0.4917 GB, free: 7.688 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.1245, allocations: 149.8 kB / 0.4918 GB, free: 7.531 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.1246, allocations: 29.7 kB / 0.4919 GB, free: 7.496 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.405e-05/0.1246, allocations: 100.1 kB / 0.492 GB, free: 7.395 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/0.1246, allocations: 23.78 kB / 0.492 GB, free: 7.371 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.352e-05/0.1247, allocations: 29.72 kB / 0.492 GB, free: 7.336 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1248, allocations: 318.8 kB / 0.4923 GB, free: 7.016 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.125, allocations: 43.91 kB / 0.4924 GB, free: 6.973 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.1251, allocations: 49.7 kB / 0.4924 GB, free: 6.918 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002213/0.1253, allocations: 73.67 kB / 0.4925 GB, free: 6.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1253, allocations: 0 / 0.4925 GB, free: 6.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002895/0.1256, allocations: 125.6 kB / 0.4926 GB, free: 6.711 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.1257, allocations: 11.94 kB / 0.4926 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1257, allocations: 4 kB / 0.4926 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.1257, allocations: 0 / 0.4926 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.1258, allocations: 20.02 kB / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.1258, allocations: 0 / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.437e-05/0.1259, allocations: 15.98 kB / 0.4926 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.1259, allocations: 0 / 0.4926 GB, free: 6.66 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 9.735e-05/0.126, allocations: 129.8 kB / 0.4928 GB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.135e-05/0.1261, allocations: 15.75 kB / 0.4928 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.841e-05/0.1261, allocations: 8.719 kB / 0.4928 GB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1261, allocations: 8 kB / 0.4928 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1261, allocations: 0 / 0.4928 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.1261, allocations: 0 / 0.4928 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005299/0.1267, allocations: 398.3 kB / 0.4932 GB, free: 6.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.1267, allocations: 0 / 0.4932 GB, free: 6.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.103e-05/0.1268, allocations: 15.98 kB / 0.4932 GB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1268, allocations: 0 / 0.4932 GB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.1268, allocations: 8 kB / 0.4932 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1268, allocations: 3.938 kB / 0.4932 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.1268, allocations: 0 / 0.4932 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004609/0.1273, allocations: 251.2 kB / 0.4934 GB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.471e-05/0.1274, allocations: 85.05 kB / 0.4935 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.1274, allocations: 3.984 kB / 0.4935 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.1275, allocations: 15.98 kB / 0.4935 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.179e-05/0.1276, allocations: 15.98 kB / 0.4936 GB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/0.1276, allocations: 0 / 0.4936 GB, free: 5.617 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.212e-05/0.1277, allocations: 124 kB / 0.4937 GB, free: 5.496 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1277, allocations: 0 / 0.4937 GB, free: 5.496 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002347/0.1279, allocations: 15.91 kB / 0.4937 GB, free: 5.48 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.0007214/0.1287, allocations: 0.7869 MB / 0.4945 GB, free: 4.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002821/0.129, allocations: 79.89 kB / 0.4945 GB, free: 4.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.129, allocations: 4.125 kB / 0.4945 GB, free: 4.586 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.1291, allocations: 47.95 kB / 0.4946 GB, free: 4.539 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.1294, allocations: 26.3 kB / 0.4946 GB, free: 4.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.1314, allocations: 1.639 MB / 0.4962 GB, free: 2.793 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002843/0.1317, allocations: 0.6963 MB / 0.4969 GB, free: 2.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.527e-05/0.1318, allocations: 4.562 kB / 0.4969 GB, free: 2.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.22e-05/0.1318, allocations: 35.42 kB / 0.4969 GB, free: 2.027 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1318, allocations: 0 / 0.4969 GB, free: 2.027 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0211/0.1529, allocations: 2.688 MB / 0.4996 GB, free: 15.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/8.059, allocations: 3.859 kB / 0.4996 GB, free: 15.33 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) "" Variables in the reference:time,integrator.y Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,change.pre_u_start,change.u,change.y,const1.k,const1.y,constMinus1.k,constMinus1.y,der(integrator.y),integrator.initType,integrator.k,integrator.limitsAtInit,integrator.outMax,integrator.outMin,integrator.reset,integrator.strict,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,switch.u1,switch.u2,switch.u3,switch.y,time