Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002221/0.002221, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.115/2.115, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 94.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003954/0.0003955, allocations: 8 kB / 327 MB, free: 15.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1061, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002634/0.1088, allocations: 1.395 MB / 376 MB, free: 13.93 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008803/0.1097, allocations: 267.2 kB / 376.3 MB, free: 13.67 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.1098, allocations: 7.938 kB / 376.3 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.11, allocations: 23.8 kB / 376.3 MB, free: 13.64 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.085e-05/0.1101, allocations: 11.98 kB / 376.3 MB, free: 13.63 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004587/0.1105, allocations: 91.83 kB / 376.4 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003489/0.1109, allocations: 155.7 kB / 376.6 MB, free: 13.39 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003778/0.1113, allocations: 149.9 kB / 376.7 MB, free: 13.24 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.1114, allocations: 63.78 kB / 376.8 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001823/0.1116, allocations: 75.59 kB / 376.9 MB, free: 13.1 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.221e-05/0.1117, allocations: 12 kB / 376.9 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.688e-05/0.1118, allocations: 19.94 kB / 376.9 MB, free: 13.07 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.934e-05/0.1119, allocations: 43.83 kB / 376.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.061e-05/0.112, allocations: 57.58 kB / 377 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003126/0.1123, allocations: 155.6 kB / 377.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1123, allocations: 0 / 377.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.936e-06/0.1124, allocations: 0 / 377.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1124, allocations: 0 / 377.1 MB, free: 12.81 MB / 282.7 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.0008184/0.1132, allocations: 458.1 kB / 377.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.223e-05/0.1133, allocations: 12.02 kB / 377.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.494e-05/0.1134, allocations: 58.55 kB / 377.7 MB, free: 12.23 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.477e-05/0.1135, allocations: 19.81 kB / 377.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.1138, allocations: 226.7 kB / 377.9 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.116e-05/0.1139, allocations: 20.56 kB / 377.9 MB, free: 11.93 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.405e-05/0.114, allocations: 35.89 kB / 378 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000724/0.1147, allocations: 270 kB / 378.2 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.1147, allocations: 0 / 378.2 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.129e-05/0.1148, allocations: 15.98 kB / 378.2 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.1148, allocations: 4 kB / 378.2 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000508/0.1153, allocations: 161.6 kB / 378.4 MB, free: 11.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.1172, allocations: 0.9712 MB / 379.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004498/0.1177, allocations: 151.4 kB / 379.5 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.1177, allocations: 4.188 kB / 379.5 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003335/0.1181, allocations: 119.5 kB / 379.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 5.981e-06/0.1181, allocations: 3.984 kB / 379.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006703/0.1188, allocations: 206 kB / 379.8 MB, free: 9.891 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.1189, allocations: 55.41 kB / 379.9 MB, free: 9.824 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.1191, allocations: 159.8 kB / 380 MB, free: 9.66 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.654e-05/0.1191, allocations: 37.69 kB / 380.1 MB, free: 9.617 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.1193, allocations: 210.9 kB / 380.3 MB, free: 9.41 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.035e-05/0.1194, allocations: 55.2 kB / 380.3 MB, free: 9.355 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.1194, allocations: 12 kB / 380.4 MB, free: 9.344 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1196, allocations: 326.8 kB / 380.7 MB, free: 9.016 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.1198, allocations: 60.62 kB / 380.7 MB, free: 8.957 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002959/0.1201, allocations: 137.7 kB / 380.9 MB, free: 8.793 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.1203, allocations: 75.95 kB / 380.9 MB, free: 8.719 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.1203, allocations: 0 / 380.9 MB, free: 8.719 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006374/0.121, allocations: 245.5 kB / 381.2 MB, free: 8.473 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.121, allocations: 4 kB / 381.2 MB, free: 8.469 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.121, allocations: 4 kB / 381.2 MB, free: 8.465 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.673e-05/0.1211, allocations: 7.953 kB / 381.2 MB, free: 8.457 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000261/0.1214, allocations: 35.92 kB / 381.2 MB, free: 8.422 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.531e-05/0.1214, allocations: 11.92 kB / 381.2 MB, free: 8.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001842/0.1216, allocations: 31.69 kB / 381.3 MB, free: 8.379 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.539e-05/0.1216, allocations: 12 kB / 381.3 MB, free: 8.367 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002206/0.1219, allocations: 156.5 kB / 381.4 MB, free: 8.207 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.36e-05/0.1219, allocations: 11.81 kB / 381.5 MB, free: 8.195 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005398/0.1225, allocations: 191.9 kB / 381.6 MB, free: 8.004 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.1225, allocations: 7.953 kB / 381.6 MB, free: 7.996 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.1225, allocations: 0 / 381.6 MB, free: 7.996 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.1225, allocations: 7.922 kB / 381.7 MB, free: 7.988 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/0.1237, allocations: 0.5916 MB / 382.2 MB, free: 7.336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.1237, allocations: 3.953 kB / 382.3 MB, free: 7.332 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.1239, allocations: 19.92 kB / 382.3 MB, free: 7.312 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.1239, allocations: 0 / 382.3 MB, free: 7.312 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.49e-05/0.1239, allocations: 8 kB / 382.3 MB, free: 7.305 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.124, allocations: 0 / 382.3 MB, free: 7.305 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.124, allocations: 0 / 382.3 MB, free: 7.305 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005076/0.1245, allocations: 263.3 kB / 382.5 MB, free: 7.031 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.039e-05/0.1246, allocations: 100.8 kB / 382.6 MB, free: 6.914 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.795e-05/0.1247, allocations: 11.98 kB / 382.6 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.1248, allocations: 8 kB / 382.7 MB, free: 6.895 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.703e-05/0.1249, allocations: 15.97 kB / 382.7 MB, free: 6.879 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.125, allocations: 11.98 kB / 382.7 MB, free: 6.867 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.073e-05/0.1251, allocations: 95.83 kB / 382.8 MB, free: 6.773 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1251, allocations: 0 / 382.8 MB, free: 6.773 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004871/0.1256, allocations: 51.84 kB / 382.8 MB, free: 6.723 MB / 282.7 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 (step.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,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 (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009206/0.1265, allocations: 0.8219 MB / 383.6 MB, free: 5.875 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005349/0.1271, allocations: 183.8 kB / 383.8 MB, free: 5.695 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1271, allocations: 0 / 383.8 MB, free: 5.695 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002139/0.1273, allocations: 80.47 kB / 383.9 MB, free: 5.617 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.1276, allocations: 19.98 kB / 383.9 MB, free: 5.598 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002925/0.1306, allocations: 2.343 MB / 386.3 MB, free: 3.16 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004247/0.1311, allocations: 0.7367 MB / 387 MB, free: 2.398 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.1313, allocations: 71.34 kB / 387.1 MB, free: 2.328 MB / 282.7 MB Notification: Performance of SimCode: time 1.222e-06/0.1313, allocations: 0 / 387.1 MB, free: 2.328 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.835/2.966, allocations: 3.014 MB / 390.1 MB, free: 20.19 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat