Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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) 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: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 105.5 kB / 18.39 MB, free: 4.684 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.001359/0.001359, allocations: 183 kB / 19.33 MB, free: 3.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.271/1.271, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.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.001084/0.001085, allocations: 51.92 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07432/0.07542, allocations: 46.62 MB / 375.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002252/0.0777, allocations: 1.466 MB / 377.3 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005707/0.07829, allocations: 248.8 kB / 377.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.481e-05/0.07838, allocations: 7.938 kB / 377.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.0785, allocations: 23.75 kB / 377.5 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.116e-05/0.07855, allocations: 19.78 kB / 377.6 MB, free: 2.824 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003442/0.0789, allocations: 107.9 kB / 377.7 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002596/0.07917, allocations: 263.5 kB / 377.9 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002529/0.07943, allocations: 170.4 kB / 378.1 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.085e-05/0.07952, allocations: 91.69 kB / 378.2 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.07964, allocations: 91.61 kB / 378.3 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.439e-05/0.07968, allocations: 24 kB / 378.3 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.528e-05/0.07976, allocations: 27.98 kB / 378.3 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.328e-05/0.07981, allocations: 63.77 kB / 378.4 MB, free: 2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.009e-05/0.0799, allocations: 91.53 kB / 378.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002356/0.08014, allocations: 239.2 kB / 378.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.08015, allocations: 0 / 378.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.08016, allocations: 0 / 378.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.08017, allocations: 4 kB / 378.7 MB, free: 1.672 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005457/0.08072, allocations: 490.5 kB / 379.2 MB, free: 1.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.862e-05/0.08076, allocations: 8.031 kB / 379.2 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.746e-05/0.08082, allocations: 24.66 kB / 379.2 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002647/0.08109, allocations: 228 kB / 379.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.292e-05/0.08113, allocations: 24.92 kB / 379.5 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/0.08117, allocations: 24.38 kB / 379.5 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003909/0.08157, allocations: 255.9 kB / 379.7 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.08158, allocations: 192 / 379.7 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.444e-05/0.08161, allocations: 7.938 kB / 379.7 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.08163, allocations: 8 kB / 379.7 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000267/0.0819, allocations: 153.7 kB / 379.9 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1584/0.2403, allocations: 0.6896 MB / 380.6 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002925/0.2406, allocations: 172.6 kB / 380.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.2407, allocations: 76.39 kB / 380.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.2408, allocations: 9.094 kB / 380.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001874/0.241, allocations: 128.7 kB / 381 MB, free: 12.58 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.845e-06/0.241, allocations: 0 / 381 MB, free: 12.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004104/0.2414, allocations: 213 kB / 381.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.2414, allocations: 58.05 kB / 381.2 MB, free: 12.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.495e-05/0.2415, allocations: 144.6 kB / 381.4 MB, free: 12.38 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.2416, allocations: 39.11 kB / 381.4 MB, free: 12.35 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.487e-05/0.2416, allocations: 135.1 kB / 381.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.197e-05/0.2417, allocations: 67.05 kB / 381.6 MB, free: 12.22 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.019e-05/0.2418, allocations: 72.41 kB / 381.7 MB, free: 12.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.825e-05/0.2419, allocations: 326.9 kB / 382 MB, free: 11.89 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.242, allocations: 62.09 kB / 382.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.2421, allocations: 130.8 kB / 382.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002084/0.2423, allocations: 169.6 kB / 382.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.2423, allocations: 3.062 kB / 382.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003316/0.2427, allocations: 244.8 kB / 382.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.2427, allocations: 6.625 kB / 382.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2427, allocations: 2.75 kB / 382.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.2427, allocations: 10.59 kB / 382.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.2429, allocations: 31.83 kB / 382.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.936e-06/0.2429, allocations: 3.594 kB / 382.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.29e-05/0.243, allocations: 28.33 kB / 382.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.334e-05/0.243, allocations: 12.72 kB / 382.7 MB, free: 11.7 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001282/0.2431, allocations: 159.1 kB / 382.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.2432, allocations: 13.66 kB / 382.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003492/0.2435, allocations: 209 kB / 383.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.2435, allocations: 3.625 kB / 383.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2436, allocations: 0.5312 kB / 383.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.2436, allocations: 1.859 kB / 383.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007108/0.2443, allocations: 0.5619 MB / 383.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2443, allocations: 0.5938 kB / 383.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.679e-05/0.2444, allocations: 17.94 kB / 383.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.2444, allocations: 1 kB / 383.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.2444, allocations: 6.875 kB / 383.7 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.2444, allocations: 6.406 kB / 383.7 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/0.2444, allocations: 5 kB / 383.7 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002631/0.2447, allocations: 276.6 kB / 383.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.588e-05/0.2447, allocations: 94.16 kB / 384 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/0.2448, allocations: 7.016 kB / 384 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-05/0.2449, allocations: 5.5 kB / 384 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.9e-05/0.2449, allocations: 24.69 kB / 384.1 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.245, allocations: 9.5 kB / 384.1 MB, free: 10.81 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.909e-05/0.245, allocations: 97.19 kB / 384.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.245, allocations: 0 / 384.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002814/0.2453, allocations: 50.84 kB / 384.2 MB, free: 10.71 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001259/0.2454, allocations: 119.7 kB / 384.3 MB, free: 10.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003003/0.2457, allocations: 188.4 kB / 384.5 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2458, allocations: 1.562 kB / 384.5 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.2459, allocations: 80.75 kB / 384.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.2462, allocations: 20.86 kB / 384.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005149/0.2467, allocations: 354.2 kB / 385 MB, free: 10.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.2468, allocations: 0.7362 MB / 385.7 MB, free: 9.566 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.663e-05/0.2469, allocations: 24.11 kB / 385.7 MB, free: 9.559 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.2469, allocations: 0 / 385.7 MB, free: 9.559 MB / 318.1 MB Notification: Performance of Templates: time 0.00516/0.2521, allocations: 2.373 MB / 388.1 MB, free: 9.32 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches