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.001122/0.001122, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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 / 239 MB, free: 4.699 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.001434/0.001434, allocations: 200.4 kB / 289.3 MB, free: 2.434 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05315/0.05315, allocations: 8.8 MB / 348.2 MB, free: 4.816 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 77.03 kB / 410.7 MB, free: 42.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07471/0.07631, allocations: 51.57 MB / 462.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical1): time 0.002053/0.0784, allocations: 0.548 MB / 462.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001734/0.07861, allocations: 23.95 kB / 462.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.924e-05/0.07866, allocations: 0 / 462.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.549e-05/0.07869, allocations: 0 / 462.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.497e-05/0.07876, allocations: 3.938 kB / 462.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001463/0.07891, allocations: 4 kB / 462.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.52e-05/0.07897, allocations: 4 kB / 462.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.493e-05/0.07905, allocations: 11.98 kB / 462.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.556e-05/0.07908, allocations: 7.922 kB / 462.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.156e-05/0.07914, allocations: 8 kB / 462.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.625e-05/0.07917, allocations: 0 / 462.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.197e-06/0.07918, allocations: 0 / 462.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.694e-05/0.0792, allocations: 0 / 462.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.653e-05/0.07923, allocations: 7.938 kB / 462.9 MB, free: 14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 5.853e-05/0.0793, allocations: 7.922 kB / 462.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.07931, allocations: 0 / 462.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.07932, allocations: 0 / 462.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.07933, allocations: 0 / 462.9 MB, free: 13.99 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.0003755/0.07971, allocations: 331.5 kB / 463.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.07977, allocations: 12.03 kB / 463.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.251e-05/0.0798, allocations: 34.69 kB / 463.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.306e-05/0.07983, allocations: 0.9375 kB / 463.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.07995, allocations: 172.4 kB / 463.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.07997, allocations: 384 / 463.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.882e-05/0.07999, allocations: 384 / 463.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.667e-05/0.08008, allocations: 30.27 kB / 463.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.0801, allocations: 3.938 kB / 463.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-06/0.08011, allocations: 4 kB / 463.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.08013, allocations: 4 kB / 463.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.177e-05/0.08018, allocations: 15.97 kB / 463.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001608/0.08034, allocations: 154 kB / 463.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.392e-05/0.08042, allocations: 34.52 kB / 463.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.036e-05/0.08046, allocations: 16.94 kB / 463.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.044e-05/0.08048, allocations: 0 / 463.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.08051, allocations: 38.56 kB / 463.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.263e-06/0.08051, allocations: 0 / 463.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001409/0.08066, allocations: 57.47 kB / 463.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.0807, allocations: 51.41 kB / 463.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.418e-05/0.08077, allocations: 97.86 kB / 463.9 MB, free: 12.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.08079, allocations: 25.7 kB / 463.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.398e-05/0.08083, allocations: 80.14 kB / 464 MB, free: 12.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.025e-05/0.08086, allocations: 23.81 kB / 464 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.164e-05/0.08091, allocations: 17.66 kB / 464.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.08102, allocations: 322.8 kB / 464.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.582e-05/0.08104, allocations: 4 kB / 464.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.127e-05/0.08105, allocations: 3.984 kB / 464.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.472e-05/0.08109, allocations: 16.86 kB / 464.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.0811, allocations: 4 kB / 464.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.828e-05/0.08117, allocations: 49.62 kB / 464.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.0812, allocations: 7.938 kB / 464.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.902e-06/0.08121, allocations: 4 kB / 464.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.08123, allocations: 0 / 464.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.335e-05/0.08132, allocations: 12 kB / 464.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.08134, allocations: 0 / 464.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.878e-05/0.08136, allocations: 3.906 kB / 464.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.767e-06/0.08137, allocations: 4 kB / 464.5 MB, free: 12.15 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 7.422e-05/0.08145, allocations: 110.4 kB / 464.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.252e-05/0.08147, allocations: 7.922 kB / 464.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.17e-05/0.08149, allocations: 11.5 kB / 464.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.0815, allocations: 4 kB / 464.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.08151, allocations: 0 / 464.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.08152, allocations: 0.5156 kB / 464.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.08163, allocations: 149.7 kB / 464.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.08163, allocations: 4 kB / 464.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.318e-05/0.08171, allocations: 12 kB / 464.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.08172, allocations: 3.938 kB / 464.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-06/0.08174, allocations: 0 / 464.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.08174, allocations: 0 / 464.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.08175, allocations: 7.938 kB / 464.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001379/0.08189, allocations: 85.09 kB / 464.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.445e-05/0.08195, allocations: 81.02 kB / 465 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.08197, allocations: 3.938 kB / 465 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.667e-05/0.08199, allocations: 0 / 465 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.19e-05/0.08201, allocations: 0 / 465 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-06/0.08202, allocations: 4.031 kB / 465 MB, free: 11.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.169e-05/0.08205, allocations: 75.28 kB / 465 MB, free: 11.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.08206, allocations: 0 / 465 MB, free: 11.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001793/0.08224, allocations: 12.05 kB / 465 MB, free: 11.49 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.0003434/0.08259, allocations: 0.6124 MB / 465.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.926e-05/0.08268, allocations: 19.92 kB / 465.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.08269, allocations: 0 / 465.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.827e-05/0.08271, allocations: 15.94 kB / 465.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001358/0.08286, allocations: 8 kB / 465.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008421/0.08371, allocations: 1.114 MB / 466.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.08394, allocations: 0.6768 MB / 467.5 MB, free: 8.906 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.674e-05/0.08396, allocations: 0 / 467.5 MB, free: 8.906 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.893e-05/0.084, allocations: 11.44 kB / 467.5 MB, free: 8.895 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.084, allocations: 0 / 467.5 MB, free: 8.895 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01089/0.09489, allocations: 0.9839 MB / 468.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/0.09509, allocations: 193.5 kB / 468.7 MB, free: 7.742 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.636/1.731, allocations: 0 / 468.7 MB, free: 7.742 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)