Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical2.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",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.00125/0.00125, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 238.9 MB, free: 4.738 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 192.5 kB / 289.1 MB, free: 2.484 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03445/0.03445, allocations: 8.805 MB / 348.1 MB, free: 4.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 76.8 kB / 410.5 MB, free: 42.36 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0873/0.08884, allocations: 51.57 MB / 462.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.001619/0.09049, allocations: 0.5559 MB / 462.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001042/0.09061, allocations: 27.88 kB / 462.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.914e-05/0.09064, allocations: 0 / 462.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.42e-05/0.09066, allocations: 0 / 462.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.709e-05/0.09071, allocations: 3.938 kB / 462.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.348e-05/0.09079, allocations: 4 kB / 462.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.332e-05/0.09084, allocations: 15.92 kB / 462.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.28e-05/0.09089, allocations: 4 kB / 462.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.866e-05/0.09092, allocations: 7.938 kB / 462.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.017e-05/0.09096, allocations: 4 kB / 462.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.159e-05/0.09098, allocations: 0 / 462.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.186e-06/0.09099, allocations: 4 kB / 462.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.402e-05/0.09101, allocations: 3.984 kB / 462.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.134e-05/0.09105, allocations: 15.92 kB / 462.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 4.301e-05/0.09109, allocations: 7.938 kB / 462.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.0911, allocations: 0 / 462.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.09111, allocations: 0 / 462.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.09111, allocations: 0 / 462.7 MB, free: 14.12 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003058/0.09142, allocations: 331.7 kB / 463.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.09147, allocations: 12.03 kB / 463.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.694e-05/0.0915, allocations: 34.69 kB / 463.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.841e-05/0.09152, allocations: 4.938 kB / 463.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.01e-05/0.09162, allocations: 164.4 kB / 463.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.903e-06/0.09163, allocations: 384 / 463.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.09165, allocations: 4.375 kB / 463.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.721e-05/0.09173, allocations: 34.27 kB / 463.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.09175, allocations: 3.938 kB / 463.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.24e-06/0.09176, allocations: 0 / 463.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-06/0.09176, allocations: 0 / 463.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.951e-05/0.0918, allocations: 11.98 kB / 463.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001322/0.09194, allocations: 157.7 kB / 463.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.711e-05/0.09201, allocations: 38.52 kB / 463.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.824e-05/0.09204, allocations: 16.94 kB / 463.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-06/0.09206, allocations: 0 / 463.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.815e-05/0.09208, allocations: 34.56 kB / 463.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 8.01e-07/0.09209, allocations: 4 kB / 463.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001279/0.09222, allocations: 61.59 kB / 463.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.73e-05/0.09225, allocations: 55.41 kB / 463.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.836e-05/0.09232, allocations: 97.8 kB / 463.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.09234, allocations: 25.7 kB / 463.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.136e-05/0.09237, allocations: 88.12 kB / 463.9 MB, free: 12.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.0924, allocations: 3.906 kB / 463.9 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.931e-05/0.09243, allocations: 17.72 kB / 463.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.479e-05/0.09252, allocations: 318.8 kB / 464.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.647e-05/0.09254, allocations: 7.984 kB / 464.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.238e-05/0.09256, allocations: 8 kB / 464.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.861e-05/0.0926, allocations: 16.86 kB / 464.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-06/0.09261, allocations: 0 / 464.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.376e-05/0.09268, allocations: 49.62 kB / 464.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.0927, allocations: 11.94 kB / 464.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.09271, allocations: 0 / 464.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.09273, allocations: 0 / 464.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.568e-05/0.09282, allocations: 12 kB / 464.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.09283, allocations: 3.984 kB / 464.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.842e-05/0.09286, allocations: 3.906 kB / 464.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-06/0.09286, allocations: 0 / 464.3 MB, free: 12.29 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.202e-05/0.09293, allocations: 122.4 kB / 464.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-06/0.09294, allocations: 3.938 kB / 464.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.571e-05/0.09296, allocations: 3.5 kB / 464.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.09297, allocations: 0 / 464.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.09297, allocations: 0 / 464.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.09298, allocations: 8 kB / 464.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.282e-05/0.09308, allocations: 153.7 kB / 464.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.09309, allocations: 0 / 464.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.114e-05/0.09315, allocations: 8 kB / 464.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.09317, allocations: 3.938 kB / 464.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.09318, allocations: 0 / 464.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.09318, allocations: 3.938 kB / 464.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.09319, allocations: 3.984 kB / 464.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001131/0.09331, allocations: 77.12 kB / 464.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.201e-05/0.09335, allocations: 84.95 kB / 464.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.09337, allocations: 7.969 kB / 464.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.674e-05/0.09339, allocations: 0 / 464.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.521e-05/0.09341, allocations: 0 / 464.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-06/0.09342, allocations: 4 kB / 464.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.73e-05/0.09346, allocations: 83.69 kB / 464.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09347, allocations: 0 / 464.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001743/0.09365, allocations: 4 kB / 464.9 MB, free: 11.62 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.000313/0.09397, allocations: 0.6203 MB / 465.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.851e-05/0.09404, allocations: 23.92 kB / 465.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.09405, allocations: 0 / 465.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.937e-05/0.09408, allocations: 7.938 kB / 465.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.09421, allocations: 8 kB / 465.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009378/0.09516, allocations: 1.173 MB / 466.7 MB, free: 9.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.09539, allocations: 0.677 MB / 467.4 MB, free: 8.977 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.648e-05/0.09541, allocations: 4 kB / 467.4 MB, free: 8.973 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.473e-05/0.09544, allocations: 11.42 kB / 467.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.09545, allocations: 4 kB / 467.4 MB, free: 8.957 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01071/0.1062, allocations: 0.9781 MB / 468.4 MB, free: 8.051 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003049/0.1065, allocations: 193.8 kB / 468.6 MB, free: 7.789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.613/1.719, allocations: 0 / 468.6 MB, free: 7.789 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical2.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe 2>&1)