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.001119/0.001119, allocations: 103.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002175/0.002175, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2216/0.2216, allocations: 46.11 MB / 344.1 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 82.69 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1126, allocations: 62.44 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002383/0.115, allocations: 0.8219 MB / 480.9 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002075/0.1152, allocations: 47.88 kB / 481 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.855e-05/0.1153, allocations: 3.938 kB / 481 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.1155, allocations: 7.938 kB / 481 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.005e-05/0.1155, allocations: 0 / 481 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00012/0.1156, allocations: 23.91 kB / 481 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001069/0.1157, allocations: 31.98 kB / 481.1 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.1158, allocations: 19.88 kB / 481.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.482e-05/0.1159, allocations: 11.98 kB / 481.1 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.272e-05/0.1159, allocations: 15.88 kB / 481.1 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.116, allocations: 7.984 kB / 481.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.668e-06/0.116, allocations: 0 / 481.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.107e-05/0.116, allocations: 15.98 kB / 481.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.134e-05/0.116, allocations: 15.88 kB / 481.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.905e-05/0.1161, allocations: 27.91 kB / 481.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1161, allocations: 0 / 481.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1161, allocations: 0 / 481.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.1162, allocations: 3.984 kB / 481.2 MB, free: 4.117 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.0004097/0.1166, allocations: 343.7 kB / 481.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1166, allocations: 12.03 kB / 481.5 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.22e-05/0.1166, allocations: 38.73 kB / 481.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.587e-05/0.1167, allocations: 12.84 kB / 481.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001716/0.1169, allocations: 172.4 kB / 481.7 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.1169, allocations: 8.375 kB / 481.7 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.274e-05/0.1169, allocations: 8.219 kB / 481.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.117, allocations: 54.19 kB / 481.8 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.117, allocations: 3.938 kB / 481.8 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.988e-06/0.1171, allocations: 3.984 kB / 481.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.1171, allocations: 4 kB / 481.8 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.41e-05/0.1171, allocations: 15.98 kB / 481.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000507/0.1176, allocations: 292.6 kB / 482.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.538e-05/0.1177, allocations: 26.56 kB / 482.1 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.992e-05/0.1177, allocations: 8.922 kB / 482.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.1177, allocations: 0 / 482.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001273/0.1179, allocations: 55.41 kB / 482.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.1179, allocations: 0 / 482.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001483/0.118, allocations: 49.62 kB / 482.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.1181, allocations: 51.41 kB / 482.3 MB, free: 2.785 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.174e-05/0.1182, allocations: 121.8 kB / 482.4 MB, free: 2.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.1182, allocations: 25.7 kB / 482.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.121e-05/0.1183, allocations: 88.05 kB / 482.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.1183, allocations: 15.89 kB / 482.6 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.991e-05/0.1183, allocations: 13.72 kB / 482.6 MB, free: 2.496 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.959e-05/0.1184, allocations: 322.8 kB / 482.9 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.97e-05/0.1185, allocations: 7.984 kB / 482.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.814e-05/0.1185, allocations: 17.72 kB / 482.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.315e-05/0.1185, allocations: 25.66 kB / 482.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1185, allocations: 0 / 482.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.413e-05/0.1186, allocations: 57.62 kB / 483 MB, free: 2.047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.1187, allocations: 14.53 kB / 483 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.1187, allocations: 0 / 483 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.1187, allocations: 0 / 483 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.313e-05/0.1187, allocations: 4 kB / 483 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.1187, allocations: 0 / 483 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.422e-05/0.1188, allocations: 11.83 kB / 483 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.1188, allocations: 8 kB / 483 MB, free: 2.012 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.159e-05/0.1189, allocations: 109.8 kB / 483.1 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.037e-05/0.1189, allocations: 4 kB / 483.1 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.512e-05/0.1189, allocations: 7.906 kB / 483.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.074e-06/0.1189, allocations: 7.938 kB / 483.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1189, allocations: 336 / 483.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1189, allocations: 3.938 kB / 483.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002812/0.1192, allocations: 306.6 kB / 483.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.1192, allocations: 0 / 483.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.149e-05/0.1193, allocations: 4 kB / 483.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1193, allocations: 0 / 483.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.1193, allocations: 3.938 kB / 483.5 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1193, allocations: 0 / 483.5 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.1193, allocations: 8 kB / 483.5 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001416/0.1195, allocations: 155.4 kB / 483.6 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.117e-05/0.1195, allocations: 81.05 kB / 483.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.1195, allocations: 4.312 kB / 483.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.058e-05/0.1196, allocations: 4.031 kB / 483.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.001e-05/0.1197, allocations: 0 / 483.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-06/0.1197, allocations: 0 / 483.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.788e-05/0.1197, allocations: 99.27 kB / 483.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1197, allocations: 0 / 483.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002428/0.12, allocations: 15.91 kB / 483.8 MB, free: 1.109 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.0004198/0.1204, allocations: 0.6696 MB / 484.5 MB, free: 424 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.1e-05/0.1205, allocations: 27.86 kB / 484.5 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1205, allocations: 4.125 kB / 484.5 MB, free: 392 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.053e-05/0.1205, allocations: 8 kB / 484.5 MB, free: 384 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.1208, allocations: 4 kB / 484.5 MB, free: 380 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.122, allocations: 1.284 MB / 485.8 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.1222, allocations: 0.6846 MB / 486.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.003e-05/0.1222, allocations: 4 kB / 486.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.156e-05/0.1223, allocations: 23.42 kB / 486.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1223, allocations: 0 / 486.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02054/0.1428, allocations: 1.506 MB / 488 MB, free: 12.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.35/7.493, allocations: 9.062 kB / 488 MB, free: 12.81 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