Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical1.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.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",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.001054/0.001054, 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.305/1.305, allocations: 222.9 MB / 238.8 MB, free: 4.75 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.001334/0.001334, allocations: 188.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.06065/0.06065, allocations: 8.798 MB / 348.1 MB, free: 4.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 79.8 kB / 410.5 MB, free: 42.33 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08482/0.08622, allocations: 51.56 MB / 462.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical1): time 0.001786/0.08803, allocations: 0.552 MB / 462.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001216/0.08818, allocations: 15.92 kB / 462.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.265e-05/0.08821, allocations: 4 kB / 462.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.443e-05/0.08823, allocations: 0 / 462.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 2.497e-05/0.08828, allocations: 0 / 462.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001022/0.08839, allocations: 7.922 kB / 462.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.003e-05/0.08843, allocations: 4 kB / 462.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.565e-05/0.08848, allocations: 7.984 kB / 462.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.693e-05/0.08851, allocations: 11.88 kB / 462.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.172e-05/0.08855, allocations: 3.984 kB / 462.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.267e-05/0.08858, allocations: 8 kB / 462.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.394e-06/0.08859, allocations: 0 / 462.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.504e-05/0.08861, allocations: 0 / 462.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.242e-05/0.08864, allocations: 3.938 kB / 462.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 4.574e-05/0.08869, allocations: 15.92 kB / 462.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.0887, allocations: 0 / 462.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.08871, allocations: 0 / 462.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.08872, allocations: 0 / 462.7 MB, free: 14.16 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.0003063/0.08903, allocations: 319.5 kB / 463 MB, free: 13.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.08907, allocations: 12.02 kB / 463 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.948e-05/0.08911, allocations: 42.75 kB / 463.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.846e-05/0.08913, allocations: 0.9375 kB / 463.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.939e-05/0.08924, allocations: 160.4 kB / 463.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.442e-06/0.08925, allocations: 384 / 463.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.08928, allocations: 8.312 kB / 463.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.708e-05/0.08936, allocations: 38.25 kB / 463.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.08937, allocations: 3.938 kB / 463.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-06/0.08938, allocations: 0 / 463.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.08939, allocations: 0 / 463.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.834e-05/0.08942, allocations: 4 kB / 463.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001429/0.08957, allocations: 161.9 kB / 463.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.839e-05/0.08965, allocations: 50.53 kB / 463.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.839e-05/0.08968, allocations: 8.859 kB / 463.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.0897, allocations: 0 / 463.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.08972, allocations: 30.56 kB / 463.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 7.62e-07/0.08973, allocations: 0 / 463.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001214/0.08985, allocations: 61.62 kB / 463.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.08989, allocations: 55.41 kB / 463.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.148e-05/0.08996, allocations: 97.84 kB / 463.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.08997, allocations: 25.7 kB / 463.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.974e-05/0.09001, allocations: 80.14 kB / 463.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.09003, allocations: 15.78 kB / 463.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.879e-05/0.09007, allocations: 13.72 kB / 463.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.318e-05/0.09017, allocations: 330.8 kB / 464.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.183e-05/0.09018, allocations: 0 / 464.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.04e-05/0.0902, allocations: 4 kB / 464.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.439e-05/0.09024, allocations: 20.86 kB / 464.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.09024, allocations: 0 / 464.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.183e-05/0.09031, allocations: 49.69 kB / 464.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.09033, allocations: 7.938 kB / 464.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-06/0.09034, allocations: 3.938 kB / 464.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.047e-06/0.09035, allocations: 0 / 464.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.864e-05/0.09043, allocations: 15.92 kB / 464.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.09045, allocations: 4 kB / 464.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.581e-05/0.09047, allocations: 3.906 kB / 464.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.578e-06/0.09047, allocations: 4 kB / 464.3 MB, free: 12.33 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.322e-05/0.09054, allocations: 114.4 kB / 464.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.185e-06/0.09056, allocations: 3.938 kB / 464.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.681e-05/0.09058, allocations: 7.5 kB / 464.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.09058, allocations: 4 kB / 464.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.09059, allocations: 0 / 464.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.0906, allocations: 0 / 464.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.64e-05/0.0907, allocations: 157.7 kB / 464.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.09071, allocations: 0 / 464.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.527e-05/0.09078, allocations: 11.98 kB / 464.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.09079, allocations: 3.938 kB / 464.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.0908, allocations: 0 / 464.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.0908, allocations: 0 / 464.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.09081, allocations: 0 / 464.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001034/0.09091, allocations: 81.61 kB / 464.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.29e-05/0.09096, allocations: 85.11 kB / 464.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.09097, allocations: 7.938 kB / 464.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.804e-05/0.091, allocations: 3.984 kB / 464.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.236e-05/0.09101, allocations: 0 / 464.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-06/0.09102, allocations: 0 / 464.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.579e-05/0.09105, allocations: 79.28 kB / 464.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09106, allocations: 0 / 464.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000168/0.09123, allocations: 8 kB / 464.9 MB, free: 11.67 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.0003128/0.09155, allocations: 0.6163 MB / 465.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.121e-05/0.09162, allocations: 19.94 kB / 465.5 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.09163, allocations: 0 / 465.5 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.266e-05/0.09164, allocations: 4 kB / 465.5 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.09178, allocations: 7.984 kB / 465.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007434/0.09253, allocations: 1.104 MB / 466.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002038/0.09274, allocations: 0.6809 MB / 467.3 MB, free: 9.098 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.507e-05/0.09277, allocations: 3.938 kB / 467.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.391e-05/0.09279, allocations: 11.44 kB / 467.3 MB, free: 9.082 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.0928, allocations: 0 / 467.3 MB, free: 9.082 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01015/0.103, allocations: 0.9687 MB / 468.3 MB, free: 8.191 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002287/0.1032, allocations: 186.5 kB / 468.5 MB, free: 7.934 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.613/1.717, allocations: 4 kB / 468.5 MB, free: 7.93 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical1_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical1.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe 2>&1)