Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001711/0.001711, allocations: 124.7 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002044/0.002044, allocations: 186.9 kB / 20.73 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 51.92 kB / 365.6 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1099, allocations: 52.14 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003019/0.1129, allocations: 1.67 MB / 419.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008389/0.1138, allocations: 291.1 kB / 419.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.1139, allocations: 7.938 kB / 419.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.114, allocations: 23.73 kB / 419.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.123e-05/0.1141, allocations: 15.8 kB / 419.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004389/0.1145, allocations: 131.8 kB / 419.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003573/0.1149, allocations: 271.5 kB / 420.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003055/0.1152, allocations: 162.9 kB / 420.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001227/0.1153, allocations: 95.69 kB / 420.4 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.1155, allocations: 99.55 kB / 420.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.103e-05/0.1155, allocations: 24 kB / 420.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.224e-05/0.1156, allocations: 31.98 kB / 420.6 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.856e-05/0.1157, allocations: 59.83 kB / 420.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.1158, allocations: 107.5 kB / 420.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003543/0.1161, allocations: 266.8 kB / 421 MB, free: 9.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1161, allocations: 0 / 421 MB, free: 9.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1161, allocations: 0 / 421 MB, free: 9.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.1161, allocations: 0 / 421 MB, free: 9.41 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.0007585/0.1169, allocations: 0.4905 MB / 421.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.1169, allocations: 15.97 kB / 421.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.942e-05/0.117, allocations: 58.72 kB / 421.5 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.993e-05/0.1171, allocations: 28.78 kB / 421.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003889/0.1175, allocations: 232.1 kB / 421.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.358e-05/0.1175, allocations: 20.94 kB / 421.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.692e-05/0.1175, allocations: 32.31 kB / 421.8 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004726/0.118, allocations: 274.6 kB / 422.1 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.118, allocations: 3.938 kB / 422.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/0.1181, allocations: 12 kB / 422.1 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.1181, allocations: 4 kB / 422.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003046/0.1184, allocations: 169.6 kB / 422.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/0.1197, allocations: 0.9674 MB / 423.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002841/0.12, allocations: 153.4 kB / 423.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.1201, allocations: 77.62 kB / 423.5 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.1201, allocations: 4 kB / 423.5 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002201/0.1204, allocations: 133.1 kB / 423.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.1204, allocations: 0 / 423.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.000467/0.1208, allocations: 225.6 kB / 423.8 MB, free: 6.312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.825e-05/0.1209, allocations: 89.23 kB / 423.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.1211, allocations: 153.7 kB / 424.1 MB, free: 6.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.079e-05/0.1211, allocations: 41.69 kB / 424.1 MB, free: 6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.1212, allocations: 140.8 kB / 424.3 MB, free: 5.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.457e-05/0.1213, allocations: 63.55 kB / 424.3 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.1214, allocations: 81.61 kB / 424.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.1216, allocations: 330.8 kB / 424.7 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.1217, allocations: 67.84 kB / 424.8 MB, free: 5.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.1219, allocations: 148.3 kB / 424.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.1222, allocations: 196.8 kB / 425.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1222, allocations: 4 kB / 425.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000395/0.1226, allocations: 253.3 kB / 425.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1226, allocations: 4 kB / 425.4 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.1226, allocations: 7.938 kB / 425.4 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.1226, allocations: 4 kB / 425.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.1228, allocations: 43.89 kB / 425.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.1228, allocations: 4 kB / 425.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.1229, allocations: 28.06 kB / 425.5 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.1229, allocations: 16 kB / 425.5 MB, free: 4.551 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.0001673/0.1231, allocations: 158.4 kB / 425.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.659e-05/0.1231, allocations: 11.91 kB / 425.7 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003609/0.1235, allocations: 206.3 kB / 425.9 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1235, allocations: 4 kB / 425.9 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1235, allocations: 0 / 425.9 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.1235, allocations: 0 / 425.9 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008312/0.1243, allocations: 0.5948 MB / 426.5 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1243, allocations: 0 / 426.5 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.509e-05/0.1244, allocations: 23.92 kB / 426.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.1244, allocations: 3.938 kB / 426.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.1244, allocations: 4 kB / 426.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.1244, allocations: 0 / 426.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.1244, allocations: 4 kB / 426.5 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003459/0.1248, allocations: 284.2 kB / 426.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-05/0.1248, allocations: 96.95 kB / 426.9 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.911e-05/0.1249, allocations: 11.92 kB / 426.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.586e-05/0.1249, allocations: 8 kB / 426.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.672e-05/0.125, allocations: 15.97 kB / 426.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.125, allocations: 12 kB / 426.9 MB, free: 3.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.682e-05/0.1251, allocations: 98.36 kB / 427 MB, free: 2.918 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1251, allocations: 0 / 427 MB, free: 2.918 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003121/0.1254, allocations: 55.89 kB / 427.1 MB, free: 2.863 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: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0007147/0.1261, allocations: 0.8424 MB / 427.9 MB, free: 1.992 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003533/0.1265, allocations: 184.4 kB / 428.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1265, allocations: 0 / 428.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.1266, allocations: 79.78 kB / 428.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.1269, allocations: 23.92 kB / 428.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/0.1296, allocations: 2.089 MB / 430.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004328/0.13, allocations: 0.7363 MB / 431 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.204e-05/0.1301, allocations: 29.94 kB / 431 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.1302, allocations: 59.42 kB / 431.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1302, allocations: 0 / 431.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02627/0.1565, allocations: 3.768 MB / 434.9 MB, free: 10.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.822/7.978, allocations: 14.81 kB / 434.9 MB, free: 10.93 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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: 10.717344918753952]