Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001661/0.001661, allocations: 81.7 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00203/0.00203, allocations: 160.5 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.554/1.554, allocations: 177.1 MB / 204.7 MB, free: 8.977 MB / 190.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 61.19 kB / 325.5 MB, free: 408 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1025, allocations: 53.39 MB / 378.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003312/0.1058, allocations: 1.693 MB / 380.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007469/0.1066, allocations: 283.2 kB / 380.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.1067, allocations: 7.938 kB / 380.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.1068, allocations: 27.73 kB / 380.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.948e-05/0.1069, allocations: 19.73 kB / 380.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003956/0.1073, allocations: 119.8 kB / 381 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003717/0.1076, allocations: 279.4 kB / 381.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003129/0.108, allocations: 154 kB / 381.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.1081, allocations: 91.7 kB / 381.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.1082, allocations: 91.47 kB / 381.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.684e-05/0.1083, allocations: 24 kB / 381.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.458e-05/0.1083, allocations: 24 kB / 381.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.436e-05/0.1084, allocations: 63.81 kB / 381.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.483e-05/0.1085, allocations: 79.59 kB / 381.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003352/0.1088, allocations: 247 kB / 382.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1088, allocations: 8 kB / 382.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1088, allocations: 3.938 kB / 382.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.1088, allocations: 0 / 382.1 MB, free: 12.43 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007039/0.1096, allocations: 421.2 kB / 382.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.1096, allocations: 11.98 kB / 382.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000232/0.1098, allocations: 32.78 kB / 382.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003334/0.1102, allocations: 174.2 kB / 382.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.146e-05/0.1102, allocations: 20.88 kB / 382.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.363e-05/0.1102, allocations: 28.38 kB / 382.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004746/0.1107, allocations: 269.8 kB / 383 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.1107, allocations: 4.188 kB / 383 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.188e-05/0.1108, allocations: 15.94 kB / 383 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.1108, allocations: 11.94 kB / 383 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002956/0.1111, allocations: 157.9 kB / 383.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.1122, allocations: 0.836 MB / 384 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002993/0.1125, allocations: 161.4 kB / 384.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.1126, allocations: 73.62 kB / 384.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.434e-05/0.1127, allocations: 0 / 384.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002278/0.1129, allocations: 147 kB / 384.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.313e-06/0.1129, allocations: 4 kB / 384.4 MB, free: 9.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004652/0.1134, allocations: 222 kB / 384.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.247e-05/0.1134, allocations: 85.11 kB / 384.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.1136, allocations: 145.7 kB / 384.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.1136, allocations: 37.7 kB / 384.9 MB, free: 9.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.1137, allocations: 148.7 kB / 385 MB, free: 9.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.214e-05/0.1138, allocations: 55.58 kB / 385.1 MB, free: 9.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.1139, allocations: 85.42 kB / 385.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.114, allocations: 334.9 kB / 385.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.1142, allocations: 67.97 kB / 385.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.1143, allocations: 140.5 kB / 385.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002801/0.1146, allocations: 188.3 kB / 385.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1146, allocations: 4 kB / 385.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003901/0.115, allocations: 253.3 kB / 386.1 MB, free: 8.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.115, allocations: 6.969 kB / 386.1 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.115, allocations: 4 kB / 386.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.1151, allocations: 4 kB / 386.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/0.1152, allocations: 31.92 kB / 386.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/0.1152, allocations: 8.219 kB / 386.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.1153, allocations: 39.77 kB / 386.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.1153, allocations: 8 kB / 386.2 MB, free: 7.973 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001851/0.1155, allocations: 157.7 kB / 386.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.282e-05/0.1155, allocations: 7.953 kB / 386.4 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.048e-05/0.1156, allocations: 24.92 kB / 386.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1156, allocations: 4 kB / 386.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.1156, allocations: 0 / 386.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1156, allocations: 0 / 386.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006722/0.1163, allocations: 0.4976 MB / 386.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1163, allocations: 0 / 386.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.356e-05/0.1164, allocations: 15.94 kB / 386.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1164, allocations: 7.875 kB / 387 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.1164, allocations: 8 kB / 387 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.1164, allocations: 0 / 387 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1164, allocations: 3.984 kB / 387 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003128/0.1167, allocations: 276.1 kB / 387.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.201e-05/0.1167, allocations: 19.84 kB / 387.3 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.527e-05/0.1167, allocations: 7.984 kB / 387.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.741e-05/0.1168, allocations: 4 kB / 387.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.226e-05/0.1169, allocations: 27.91 kB / 387.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.1169, allocations: 11.98 kB / 387.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001292/0.1171, allocations: 95.27 kB / 387.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1171, allocations: 0 / 387.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.1174, allocations: 55.83 kB / 387.5 MB, free: 6.691 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001273/0.1175, allocations: 99.23 kB / 387.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003259/0.1178, allocations: 176 kB / 387.7 MB, free: 6.414 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.1178, allocations: 8.188 kB / 387.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.1179, allocations: 63.91 kB / 387.8 MB, free: 6.344 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.1182, allocations: 20 kB / 387.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006188/0.1188, allocations: 340.3 kB / 388.1 MB, free: 5.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001504/0.119, allocations: 125.6 kB / 388.3 MB, free: 5.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.163e-05/0.119, allocations: 21.94 kB / 388.3 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.044e-05/0.1191, allocations: 20.5 kB / 388.3 MB, free: 5.777 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1191, allocations: 0 / 388.3 MB, free: 5.777 MB / 350.1 MB Notification: Performance of Templates: time 0.005152/0.1243, allocations: 1.732 MB / 390 MB, free: 4.078 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.481253494042903]