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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 97.88 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.533/1.533, allocations: 230.6 MB / 253.5 MB, free: 14.29 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001575/0.001575, allocations: 214.7 kB / 310 MB, free: 3.148 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04358/0.04358, allocations: 8.917 MB / 375.4 MB, free: 6.59 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002364/0.002364, allocations: 83.86 kB / 0.4899 GB, free: 44.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09128/0.09364, allocations: 55.61 MB / 0.5442 GB, free: 5.082 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.001682/0.09532, allocations: 0.4919 MB / 0.5447 GB, free: 4.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001446/0.09547, allocations: 23.95 kB / 0.5447 GB, free: 4.566 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.622e-05/0.09549, allocations: 0 / 0.5447 GB, free: 4.566 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.737e-05/0.09551, allocations: 3.938 kB / 0.5447 GB, free: 4.562 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.633e-05/0.09556, allocations: 4 kB / 0.5447 GB, free: 4.559 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001266/0.09568, allocations: 15.84 kB / 0.5447 GB, free: 4.543 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.789e-05/0.09575, allocations: 15.94 kB / 0.5447 GB, free: 4.527 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.837e-05/0.09581, allocations: 0 / 0.5447 GB, free: 4.527 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.876e-05/0.09584, allocations: 7.938 kB / 0.5447 GB, free: 4.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.853e-05/0.0959, allocations: 11.98 kB / 0.5448 GB, free: 4.508 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.09591, allocations: 4 kB / 0.5448 GB, free: 4.504 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.686e-06/0.09592, allocations: 0 / 0.5448 GB, free: 4.504 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.598e-05/0.09594, allocations: 3.938 kB / 0.5448 GB, free: 4.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.712e-05/0.09596, allocations: 4 kB / 0.5448 GB, free: 4.496 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 7.275e-05/0.09604, allocations: 20.12 kB / 0.5448 GB, free: 4.477 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.09604, allocations: 0 / 0.5448 GB, free: 4.477 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09604, allocations: 0 / 0.5448 GB, free: 4.477 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.09605, allocations: 0 / 0.5448 GB, free: 4.477 MB / 366.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.0003862/0.09643, allocations: 250.4 kB / 0.545 GB, free: 4.199 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.09648, allocations: 11.98 kB / 0.545 GB, free: 4.188 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.937e-05/0.0965, allocations: 8.188 kB / 0.545 GB, free: 4.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.063e-05/0.09653, allocations: 34.75 kB / 0.5451 GB, free: 4.137 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.676e-05/0.09655, allocations: 4.891 kB / 0.5451 GB, free: 4.133 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.09667, allocations: 106.5 kB / 0.5452 GB, free: 4.004 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.09668, allocations: 4.375 kB / 0.5452 GB, free: 4 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.211e-05/0.0967, allocations: 384 / 0.5452 GB, free: 4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.574e-05/0.0968, allocations: 41.94 kB / 0.5452 GB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.0968, allocations: 0 / 0.5452 GB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-06/0.09681, allocations: 0 / 0.5452 GB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.09681, allocations: 0 / 0.5452 GB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.528e-05/0.09685, allocations: 12 kB / 0.5452 GB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00016/0.09701, allocations: 128.8 kB / 0.5454 GB, free: 3.773 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.307e-05/0.09709, allocations: 38.59 kB / 0.5454 GB, free: 3.727 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.991e-05/0.09712, allocations: 16.8 kB / 0.5454 GB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.085e-05/0.09713, allocations: 0 / 0.5454 GB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.09716, allocations: 38.5 kB / 0.5454 GB, free: 3.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=3): time 7.41e-07/0.09716, allocations: 0 / 0.5454 GB, free: 3.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001377/0.0973, allocations: 45.78 kB / 0.5455 GB, free: 3.609 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.09734, allocations: 51.41 kB / 0.5455 GB, free: 3.547 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.399e-05/0.09741, allocations: 101.8 kB / 0.5456 GB, free: 3.438 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.232e-05/0.09744, allocations: 25.7 kB / 0.5457 GB, free: 3.406 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.423e-05/0.09748, allocations: 88.14 kB / 0.5457 GB, free: 3.316 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.797e-05/0.09751, allocations: 15.84 kB / 0.5458 GB, free: 3.301 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.232e-05/0.09754, allocations: 13.72 kB / 0.5458 GB, free: 3.281 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.09767, allocations: 318.8 kB / 0.5461 GB, free: 2.961 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.675e-05/0.09769, allocations: 7.938 kB / 0.5461 GB, free: 2.953 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.156e-05/0.0977, allocations: 4 kB / 0.5461 GB, free: 2.949 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.912e-05/0.09775, allocations: 20.8 kB / 0.5461 GB, free: 2.926 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.09775, allocations: 3.938 kB / 0.5461 GB, free: 2.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.713e-05/0.09783, allocations: 45.69 kB / 0.5462 GB, free: 2.871 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.09784, allocations: 11.94 kB / 0.5462 GB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.09785, allocations: 3.984 kB / 0.5462 GB, free: 2.855 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.09786, allocations: 4 kB / 0.5462 GB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.14e-05/0.09795, allocations: 15.98 kB / 0.5462 GB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.09796, allocations: 3.938 kB / 0.5462 GB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.644e-05/0.09798, allocations: 0 / 0.5462 GB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.135e-06/0.09798, allocations: 0 / 0.5462 GB, free: 2.832 MB / 366.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.597e-05/0.09805, allocations: 109.8 kB / 0.5463 GB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.074e-05/0.09806, allocations: 7.891 kB / 0.5463 GB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.903e-05/0.09808, allocations: 7.688 kB / 0.5463 GB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-06/0.09809, allocations: 0 / 0.5463 GB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.09809, allocations: 0 / 0.5463 GB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.09809, allocations: 8 kB / 0.5463 GB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.983e-05/0.09819, allocations: 120.8 kB / 0.5464 GB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.09819, allocations: 0 / 0.5464 GB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.698e-05/0.09826, allocations: 12 kB / 0.5464 GB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.09826, allocations: 3.938 kB / 0.5465 GB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.09827, allocations: 4 kB / 0.5465 GB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.09827, allocations: 0 / 0.5465 GB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.09827, allocations: 0 / 0.5465 GB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001327/0.09841, allocations: 85.59 kB / 0.5465 GB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.684e-06/0.09841, allocations: 3.984 kB / 0.5465 GB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.09843, allocations: 3.984 kB / 0.5465 GB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.733e-05/0.09844, allocations: 4.062 kB / 0.5465 GB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.77e-05/0.09846, allocations: 4 kB / 0.5466 GB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-06/0.09846, allocations: 0 / 0.5466 GB, free: 2.395 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.962e-05/0.0985, allocations: 79.27 kB / 0.5466 GB, free: 2.316 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.0985, allocations: 0 / 0.5466 GB, free: 2.316 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001728/0.09868, allocations: 4 kB / 0.5466 GB, free: 2.312 MB / 366.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.0003874/0.09906, allocations: 0.6124 MB / 0.5472 GB, free: 1.668 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.02e-05/0.09914, allocations: 15.92 kB / 0.5472 GB, free: 1.652 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/0.09915, allocations: 4 kB / 0.5473 GB, free: 1.648 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.7e-05/0.09917, allocations: 12.06 kB / 0.5473 GB, free: 1.637 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.09931, allocations: 1.875 kB / 0.5473 GB, free: 1.637 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.1004, allocations: 1.19 MB / 0.5484 GB, free: 376 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.843e-05/0.1004, allocations: 63.36 kB / 0.5485 GB, free: 292 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.544e-05/0.1004, allocations: 3.984 kB / 0.5485 GB, free: 288 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.813e-05/0.1005, allocations: 7.438 kB / 0.5485 GB, free: 280 kB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1005, allocations: 0 / 0.5485 GB, free: 280 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.1228, allocations: 1.293 MB / 0.5498 GB, free: 15.1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.45, allocations: 10.81 kB / 0.5498 GB, free: 15.09 MB / 382.1 MB " [Timeout remaining time 648] (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/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical2_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical2.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.368737522978336] Failed to read output from testmodel.py, exit status != 0: 11.614915671991184 11.642417266 11.541508979 Calling exit ...