Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical4.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.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",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.001113/0.001113, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 239.4 MB, free: 4.613 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.00127/0.00127, allocations: 180.5 kB / 289.7 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03572/0.03572, allocations: 8.796 MB / 348.6 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 79.97 kB / 411.4 MB, free: 41.94 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08063/0.08223, allocations: 51.56 MB / 462.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical4): time 0.003304/0.08559, allocations: 1.807 MB / 464.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008315/0.08646, allocations: 458.9 kB / 465.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.08661, allocations: 4 kB / 465.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001393/0.08681, allocations: 19.78 kB / 465.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.215e-05/0.08691, allocations: 27.72 kB / 465.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001525/0.08707, allocations: 27.97 kB / 465.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000181/0.08726, allocations: 123.4 kB / 465.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001742/0.08744, allocations: 52.95 kB / 465.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.687e-05/0.08753, allocations: 47.8 kB / 465.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.08765, allocations: 51.77 kB / 465.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.97e-05/0.08768, allocations: 12 kB / 465.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.411e-05/0.08771, allocations: 8 kB / 465.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.98e-05/0.08775, allocations: 19.92 kB / 465.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.044e-05/0.08784, allocations: 67.72 kB / 465.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001915/0.08804, allocations: 115.9 kB / 465.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.08805, allocations: 0 / 465.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.08806, allocations: 3.938 kB / 465.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.08808, allocations: 0 / 465.7 MB, free: 11.29 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.0006323/0.08872, allocations: 411.1 kB / 466.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.08877, allocations: 8.031 kB / 466.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.736e-05/0.08883, allocations: 46.73 kB / 466.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.874e-05/0.08889, allocations: 16.84 kB / 466.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.08921, allocations: 188.2 kB / 466.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/0.08924, allocations: 8.375 kB / 466.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.194e-05/0.08927, allocations: 12.38 kB / 466.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002217/0.0895, allocations: 115.2 kB / 466.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.08952, allocations: 0 / 466.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.08954, allocations: 3.938 kB / 466.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.08955, allocations: 4 kB / 466.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.08968, allocations: 55.98 kB / 466.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008356/0.09052, allocations: 0.4981 MB / 467.1 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001049/0.09064, allocations: 50.52 kB / 467.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.551e-05/0.09068, allocations: 20.94 kB / 467.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.143e-05/0.0907, allocations: 4 kB / 467.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.09073, allocations: 30.56 kB / 467.2 MB, free: 9.652 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.262e-06/0.09074, allocations: 0 / 467.2 MB, free: 9.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.000184/0.09093, allocations: 61.77 kB / 467.2 MB, free: 9.586 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.09099, allocations: 55.41 kB / 467.3 MB, free: 9.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.09111, allocations: 147.7 kB / 467.4 MB, free: 9.367 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.09113, allocations: 25.7 kB / 467.5 MB, free: 9.336 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.563e-05/0.0912, allocations: 120 kB / 467.6 MB, free: 9.211 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.198e-05/0.09122, allocations: 15.81 kB / 467.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.793e-05/0.09126, allocations: 21.72 kB / 467.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.09137, allocations: 322.8 kB / 467.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.793e-05/0.09141, allocations: 12 kB / 468 MB, free: 8.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.718e-05/0.09145, allocations: 30.62 kB / 468 MB, free: 8.793 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.78e-05/0.09152, allocations: 54.52 kB / 468 MB, free: 8.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.09153, allocations: 0 / 468 MB, free: 8.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001165/0.09165, allocations: 85.52 kB / 468.1 MB, free: 8.641 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.09167, allocations: 4 kB / 468.1 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.09168, allocations: 0 / 468.1 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.0917, allocations: 4 kB / 468.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.09181, allocations: 23.92 kB / 468.1 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.09182, allocations: 160 / 468.1 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.704e-05/0.09189, allocations: 7.938 kB / 468.2 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-06/0.09191, allocations: 8.047 kB / 468.2 MB, free: 8.594 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 7.741e-05/0.09199, allocations: 129.6 kB / 468.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.84e-05/0.09202, allocations: 7.906 kB / 468.3 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.603e-05/0.09206, allocations: 16.23 kB / 468.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.09206, allocations: 0 / 468.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.09207, allocations: 0 / 468.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.09208, allocations: 0 / 468.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.09226, allocations: 193.6 kB / 468.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.09227, allocations: 0 / 468.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.114e-05/0.09235, allocations: 15.98 kB / 468.5 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.09236, allocations: 4 kB / 468.5 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.09237, allocations: 0 / 468.5 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.09238, allocations: 0 / 468.5 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.09238, allocations: 0 / 468.5 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001537/0.09254, allocations: 171.3 kB / 468.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.364e-05/0.09259, allocations: 89.03 kB / 468.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.09262, allocations: 3.938 kB / 468.8 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.683e-05/0.09271, allocations: 8.062 kB / 468.8 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.137e-05/0.09273, allocations: 4 kB / 468.8 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.09274, allocations: 0 / 468.8 MB, free: 7.867 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.825e-05/0.09281, allocations: 107.2 kB / 468.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09282, allocations: 0 / 468.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002421/0.09306, allocations: 31.84 kB / 468.9 MB, free: 7.73 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.0003876/0.09346, allocations: 0.6968 MB / 469.6 MB, free: 7.008 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.09358, allocations: 31.94 kB / 469.7 MB, free: 6.977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.09359, allocations: 4 kB / 469.7 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.015e-05/0.09362, allocations: 15.98 kB / 469.7 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.0939, allocations: 10.34 kB / 469.7 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.09539, allocations: 1.583 MB / 471.3 MB, free: 5.277 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.09565, allocations: 0.708 MB / 472 MB, free: 4.543 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.727e-05/0.09569, allocations: 4.672 kB / 472 MB, free: 4.539 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.078e-05/0.09575, allocations: 27.42 kB / 472 MB, free: 4.512 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.09575, allocations: 4 kB / 472 MB, free: 4.508 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01821/0.114, allocations: 1.985 MB / 474 MB, free: 2.598 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.564/7.678, allocations: 7.938 kB / 474 MB, free: 2.59 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical4_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical4.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe 2>&1)