Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) 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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 109.4 kB / 17.73 MB, free: 5.32 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.001165/0.001165, allocations: 196.2 kB / 18.67 MB, free: 4.387 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.38/1.38, allocations: 205.1 MB / 224.5 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.00165/0.00165, allocations: 63.91 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.114, allocations: 46.61 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002978/0.1171, allocations: 1.659 MB / 376.3 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007422/0.1178, allocations: 264 kB / 376.5 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.118, allocations: 11.94 kB / 376.6 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.1181, allocations: 19.75 kB / 376.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.668e-05/0.1182, allocations: 27.72 kB / 376.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000409/0.1186, allocations: 111.8 kB / 376.7 MB, free: 2.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003504/0.1189, allocations: 271.5 kB / 377 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003155/0.1193, allocations: 194.8 kB / 377.2 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.1194, allocations: 87.75 kB / 377.2 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001328/0.1195, allocations: 95.55 kB / 377.3 MB, free: 2.355 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.958e-05/0.1196, allocations: 24 kB / 377.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.763e-05/0.1196, allocations: 36 kB / 377.4 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.902e-05/0.1197, allocations: 59.81 kB / 377.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.1198, allocations: 107.4 kB / 377.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003195/0.1202, allocations: 258.9 kB / 377.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1202, allocations: 0 / 377.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1202, allocations: 0 / 377.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1202, allocations: 0 / 377.8 MB, free: 1.879 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007344/0.1209, allocations: 497.5 kB / 378.3 MB, free: 1.344 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.121, allocations: 8.031 kB / 378.3 MB, free: 1.336 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.522e-05/0.1211, allocations: 66.72 kB / 378.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.779e-05/0.1211, allocations: 24.8 kB / 378.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.1214, allocations: 239.9 kB / 378.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.958e-05/0.1215, allocations: 24.94 kB / 378.7 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/0.1215, allocations: 28.38 kB / 378.7 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000444/0.122, allocations: 270.6 kB / 379 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.122, allocations: 3.938 kB / 379 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.48e-05/0.122, allocations: 12 kB / 379 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.122, allocations: 4 kB / 379 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000315/0.1223, allocations: 169.5 kB / 379.1 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1888/0.3111, allocations: 0.956 MB / 380.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004235/0.3116, allocations: 155.8 kB / 380.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.3118, allocations: 76.5 kB / 380.3 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.949e-05/0.3118, allocations: 2.75 kB / 380.3 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002477/0.3121, allocations: 122.2 kB / 380.4 MB, free: 12.17 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.577e-06/0.3121, allocations: 0.8438 kB / 380.4 MB, free: 12.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005878/0.3127, allocations: 214.8 kB / 380.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.517e-05/0.3127, allocations: 55.58 kB / 380.7 MB, free: 12.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.3129, allocations: 164.1 kB / 380.9 MB, free: 11.97 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.3129, allocations: 36.86 kB / 380.9 MB, free: 11.94 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.845e-05/0.313, allocations: 144.6 kB / 381 MB, free: 11.83 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.6e-05/0.3131, allocations: 62.5 kB / 381.1 MB, free: 11.8 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.3133, allocations: 77.81 kB / 381.2 MB, free: 11.78 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.503e-05/0.3133, allocations: 330.2 kB / 381.5 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.3135, allocations: 63.02 kB / 381.6 MB, free: 11.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.3137, allocations: 142.1 kB / 381.7 MB, free: 11.39 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000299/0.314, allocations: 186.8 kB / 381.9 MB, free: 11.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.314, allocations: 1.375 kB / 381.9 MB, free: 11.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005078/0.3146, allocations: 254.5 kB / 382.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.3146, allocations: 6.703 kB / 382.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.3146, allocations: 2.75 kB / 382.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.3146, allocations: 4.734 kB / 382.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.3148, allocations: 33.36 kB / 382.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.3149, allocations: 15.34 kB / 382.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.315, allocations: 28.42 kB / 382.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.721e-05/0.315, allocations: 13.97 kB / 382.2 MB, free: 11.24 MB / 318.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: 30 ($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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001334/0.3152, allocations: 166.1 kB / 382.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.67e-05/0.3152, allocations: 14.34 kB / 382.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003792/0.3156, allocations: 189 kB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.3156, allocations: 2.562 kB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3156, allocations: 5.906 kB / 382.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.3156, allocations: 5.922 kB / 382.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008003/0.3164, allocations: 0.5863 MB / 383.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3164, allocations: 1.312 kB / 383.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.971e-05/0.3165, allocations: 17.11 kB / 383.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.846e-05/0.3166, allocations: 1.031 kB / 383.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.3166, allocations: 7 kB / 383.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.3166, allocations: 4.766 kB / 383.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3166, allocations: 0.5312 kB / 383.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000314/0.3169, allocations: 282.1 kB / 383.5 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.296e-05/0.317, allocations: 91.7 kB / 383.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.317, allocations: 9.938 kB / 383.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.284e-05/0.3171, allocations: 6.656 kB / 383.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.444e-05/0.3172, allocations: 21.72 kB / 383.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.3172, allocations: 10.12 kB / 383.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.604e-05/0.3172, allocations: 97.52 kB / 383.7 MB, free: 10.28 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3172, allocations: 0 / 383.7 MB, free: 10.28 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003133/0.3176, allocations: 55.2 kB / 383.8 MB, free: 10.26 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 (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: 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 (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.0005229/0.3181, allocations: 0.8232 MB / 384.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003501/0.3185, allocations: 181.9 kB / 384.8 MB, free: 9.484 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3185, allocations: 0 / 384.8 MB, free: 9.484 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001342/0.3186, allocations: 84.97 kB / 384.9 MB, free: 9.457 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.3189, allocations: 21.62 kB / 384.9 MB, free: 9.449 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.3209, allocations: 2.062 MB / 387 MB, free: 7.797 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001996/0.3211, allocations: 0.7404 MB / 387.7 MB, free: 7.094 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.988e-05/0.3212, allocations: 30.92 kB / 387.7 MB, free: 7.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.3213, allocations: 62.55 kB / 387.8 MB, free: 7.047 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3213, allocations: 0.875 kB / 387.8 MB, free: 7.047 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03008/0.3514, allocations: 3.71 MB / 391.5 MB, free: 6.355 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.183/8.534, allocations: 9.234 kB / 391.5 MB, free: 6.348 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches