Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical5.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.Electrical5,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical5,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical5",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.0007109/0.0007109, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.319/1.319, allocations: 223.3 MB / 239.4 MB, free: 5.504 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.001029/0.001029, allocations: 175.4 kB / 290.6 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03379/0.03379, allocations: 8.818 MB / 350.5 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003639, allocations: 10 kB / 413.9 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0832/0.08359, allocations: 52.56 MB / 466.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical5): time 0.001759/0.08538, allocations: 1.523 MB / 468 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006236/0.08602, allocations: 454.9 kB / 468.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.703e-05/0.0861, allocations: 4 kB / 468.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001002/0.08621, allocations: 11.92 kB / 468.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.195e-05/0.08629, allocations: 27.77 kB / 468.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001093/0.08641, allocations: 15.98 kB / 468.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001437/0.08656, allocations: 123.4 kB / 468.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.08669, allocations: 45.19 kB / 468.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.62e-05/0.08675, allocations: 39.86 kB / 468.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.945e-05/0.08683, allocations: 43.78 kB / 468.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.106e-05/0.08685, allocations: 8 kB / 468.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.797e-05/0.08688, allocations: 4 kB / 468.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.427e-05/0.08691, allocations: 19.91 kB / 468.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.297e-05/0.08697, allocations: 77.38 kB / 468.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001389/0.08712, allocations: 119.8 kB / 469 MB, free: 10.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.08713, allocations: 0 / 469 MB, free: 10.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.08714, allocations: 0 / 469 MB, free: 10.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.08715, allocations: 4 kB / 469 MB, free: 10.5 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0004459/0.0876, allocations: 383.2 kB / 469.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.08764, allocations: 16.02 kB / 469.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.112e-05/0.08769, allocations: 42.75 kB / 469.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.019e-05/0.08773, allocations: 8.844 kB / 469.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001829/0.08792, allocations: 208 kB / 469.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.08794, allocations: 8.375 kB / 469.6 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.226e-05/0.08797, allocations: 16.31 kB / 469.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.08815, allocations: 103.3 kB / 469.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.08816, allocations: 0 / 469.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.08818, allocations: 8 kB / 469.8 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.08819, allocations: 0 / 469.8 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001165/0.08832, allocations: 63.97 kB / 469.8 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007021/0.08903, allocations: 0.4982 MB / 470.3 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.435e-05/0.08912, allocations: 42.56 kB / 470.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.045e-05/0.08916, allocations: 16.86 kB / 470.4 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-06/0.08918, allocations: 4 kB / 470.4 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.08921, allocations: 38.5 kB / 470.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.08922, allocations: 0 / 470.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001542/0.08938, allocations: 61.88 kB / 470.5 MB, free: 8.816 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.08942, allocations: 55.39 kB / 470.5 MB, free: 8.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.08954, allocations: 139.2 kB / 470.7 MB, free: 8.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.08956, allocations: 29.7 kB / 470.7 MB, free: 8.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.992e-05/0.08962, allocations: 120 kB / 470.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.08965, allocations: 15.75 kB / 470.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.58e-05/0.08968, allocations: 17.7 kB / 470.8 MB, free: 8.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.676e-05/0.08978, allocations: 322.8 kB / 471.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.751e-05/0.08982, allocations: 7.984 kB / 471.2 MB, free: 8.078 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.909e-05/0.08986, allocations: 38.56 kB / 471.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.392e-05/0.08994, allocations: 58.5 kB / 471.3 MB, free: 7.965 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.08995, allocations: 0 / 471.3 MB, free: 7.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001106/0.09006, allocations: 77.53 kB / 471.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.09008, allocations: 9.719 kB / 471.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.838e-06/0.09009, allocations: 0 / 471.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.367e-06/0.09011, allocations: 0 / 471.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.95e-05/0.09021, allocations: 15.94 kB / 471.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.09022, allocations: 4 kB / 471.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.544e-05/0.09027, allocations: 12.03 kB / 471.4 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.09029, allocations: 8.156 kB / 471.4 MB, free: 7.836 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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 8.045e-05/0.09037, allocations: 121.7 kB / 471.5 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.927e-05/0.09041, allocations: 11.89 kB / 471.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.467e-05/0.09044, allocations: 8.25 kB / 471.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.09045, allocations: 4 kB / 471.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.09045, allocations: 3.938 kB / 471.5 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.09046, allocations: 0 / 471.5 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001815/0.09065, allocations: 201.5 kB / 471.7 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.09066, allocations: 0 / 471.7 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.143e-05/0.09073, allocations: 12 kB / 471.7 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.09073, allocations: 0 / 471.7 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.09075, allocations: 0 / 471.7 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.09075, allocations: 0 / 471.7 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.09076, allocations: 3.984 kB / 471.7 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001536/0.09092, allocations: 175.3 kB / 471.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.211e-05/0.09097, allocations: 84.95 kB / 472 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.553e-05/0.09099, allocations: 0 / 472 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.007e-05/0.09108, allocations: 8.062 kB / 472 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.633e-05/0.0911, allocations: 7.984 kB / 472 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.09111, allocations: 4 kB / 472 MB, free: 7.105 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.891e-05/0.09119, allocations: 103.3 kB / 472.1 MB, free: 7.004 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.0912, allocations: 0 / 472.1 MB, free: 7.004 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002263/0.09143, allocations: 16 kB / 472.1 MB, free: 6.988 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (inductor.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 (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 Backend phase and start with SimCode phase: time 0.0004316/0.09187, allocations: 0.7045 MB / 472.8 MB, free: 6.258 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.677e-05/0.09197, allocations: 31.98 kB / 472.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.09198, allocations: 0 / 472.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.201e-05/0.09201, allocations: 15.94 kB / 472.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.09231, allocations: 11.92 kB / 472.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.09377, allocations: 1.646 MB / 474.5 MB, free: 4.469 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.09403, allocations: 0.7043 MB / 475.2 MB, free: 3.738 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.695e-05/0.09407, allocations: 8.672 kB / 475.3 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.699e-05/0.09413, allocations: 27.42 kB / 475.3 MB, free: 3.703 MB / 302.1 MB Notification: Performance of SimCode: time 4.2e-07/0.09413, allocations: 4 kB / 475.3 MB, free: 3.699 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01901/0.1131, allocations: 1.767 MB / 477.1 MB, free: 2.043 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002257/0.1134, allocations: 196.8 kB / 477.2 MB, free: 1.777 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/1.801, allocations: 4 kB / 477.2 MB, free: 1.773 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical5_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical5.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe 2>&1)