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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.001055/0.001055, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.355/1.355, allocations: 223.2 MB / 238.9 MB, free: 5.668 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.001012/0.001012, allocations: 177.2 kB / 290.2 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03242/0.03242, allocations: 8.78 MB / 350 MB, free: 4.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003778/0.000378, allocations: 12.03 kB / 413.2 MB, free: 43.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1138, allocations: 52.56 MB / 465.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.0006558/0.1145, allocations: 226.4 kB / 465.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001382/0.1147, allocations: 31.91 kB / 466 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.5e-05/0.1147, allocations: 0 / 466 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.135e-05/0.1147, allocations: 0 / 466 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.034e-05/0.1148, allocations: 3.984 kB / 466 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001049/0.1149, allocations: 0 / 466 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.863e-05/0.115, allocations: 23.97 kB / 466 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.186e-05/0.115, allocations: 0 / 466 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.307e-05/0.1151, allocations: 7.938 kB / 466 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.069e-05/0.1151, allocations: 0 / 466 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.1151, allocations: 4 kB / 466 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.357e-05/0.1152, allocations: 0 / 466 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.188e-05/0.1152, allocations: 3.938 kB / 466 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.03e-05/0.1152, allocations: 37.62 kB / 466.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 3.856e-05/0.1153, allocations: 4 kB / 466.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1153, allocations: 0 / 466.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1153, allocations: 0 / 466.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.1153, allocations: 4 kB / 466.1 MB, free: 13.19 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.000398/0.1157, allocations: 327.5 kB / 466.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.1158, allocations: 8.031 kB / 466.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.683e-05/0.1158, allocations: 30.56 kB / 466.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.71e-05/0.1159, allocations: 7.953 kB / 466.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001461/0.116, allocations: 163.1 kB / 466.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.116, allocations: 4 kB / 466.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.214e-05/0.1161, allocations: 7.938 kB / 466.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001083/0.1162, allocations: 37.69 kB / 466.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.1162, allocations: 0 / 466.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.1162, allocations: 0 / 466.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.1162, allocations: 3.953 kB / 466.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.343e-05/0.1163, allocations: 15.92 kB / 466.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000196/0.1165, allocations: 149.7 kB / 466.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.417e-05/0.1165, allocations: 34.61 kB / 466.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.468e-06/0.1166, allocations: 0 / 466.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.1166, allocations: 38.56 kB / 466.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 7.01e-07/0.1166, allocations: 0 / 466.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001463/0.1167, allocations: 49.72 kB / 466.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/0.1168, allocations: 55.41 kB / 467 MB, free: 12.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.282e-05/0.1169, allocations: 101.8 kB / 467.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.1169, allocations: 25.7 kB / 467.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/0.117, allocations: 84.12 kB / 467.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.937e-05/0.117, allocations: 15.81 kB / 467.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.895e-06/0.117, allocations: 4 kB / 467.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1171, allocations: 310.8 kB / 467.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.909e-05/0.1172, allocations: 11.98 kB / 467.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.059e-05/0.1172, allocations: 4 kB / 467.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.248e-05/0.1172, allocations: 8 kB / 467.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1172, allocations: 0 / 467.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.079e-05/0.1173, allocations: 50.09 kB / 467.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.1173, allocations: 7.938 kB / 467.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1173, allocations: 0 / 467.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.1173, allocations: 0 / 467.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.29e-05/0.1174, allocations: 12 kB / 467.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.1175, allocations: 0 / 467.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.925e-05/0.1175, allocations: 3.938 kB / 467.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.1176, allocations: 12 kB / 467.6 MB, free: 11.41 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.495e-05/0.1177, allocations: 109.8 kB / 467.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.819e-06/0.1177, allocations: 7.891 kB / 467.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.038e-05/0.1177, allocations: 11.5 kB / 467.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1177, allocations: 0 / 467.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1177, allocations: 4 kB / 467.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.1177, allocations: 0 / 467.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.1178, allocations: 157.6 kB / 467.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1179, allocations: 0 / 467.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.294e-05/0.1179, allocations: 8 kB / 467.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.1179, allocations: 0 / 467.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.1179, allocations: 0 / 467.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.118, allocations: 3.938 kB / 467.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.118, allocations: 7.938 kB / 467.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/0.1181, allocations: 85.09 kB / 468 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.404e-05/0.1181, allocations: 77.11 kB / 468.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.1182, allocations: 0 / 468.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.623e-05/0.1182, allocations: 0 / 468.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.662e-05/0.1182, allocations: 0 / 468.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-06/0.1182, allocations: 4 kB / 468.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.37e-05/0.1182, allocations: 79.27 kB / 468.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1183, allocations: 0 / 468.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001714/0.1184, allocations: 8 kB / 468.2 MB, free: 10.76 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 (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.0003639/0.1188, allocations: 0.6129 MB / 468.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.862e-05/0.1189, allocations: 19.98 kB / 468.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1189, allocations: 0 / 468.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.501e-05/0.1189, allocations: 7.938 kB / 468.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001044/0.119, allocations: 4 kB / 468.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006415/0.1197, allocations: 450.8 kB / 469.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.12, allocations: 0.677 MB / 469.9 MB, free: 8.895 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.793e-05/0.12, allocations: 4 kB / 469.9 MB, free: 8.891 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.032e-05/0.12, allocations: 11.44 kB / 469.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of SimCode: time 1.493e-06/0.12, allocations: 0 / 469.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01013/0.1302, allocations: 0.9043 MB / 470.8 MB, free: 8.082 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/0.1304, allocations: 175.1 kB / 471 MB, free: 7.836 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.58/1.71, allocations: 4.062 kB / 471 MB, free: 7.832 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/linux/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) Environment - environmentSimulation: