Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Magnetic.Coupling.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.001656/0.001656, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.631/1.631, allocations: 230.6 MB / 250.5 MB, free: 9.395 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.002344/0.002344, allocations: 229.6 kB / 306.7 MB, free: 4.375 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.04289/0.04289, allocations: 8.912 MB / 371.7 MB, free: 3.516 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.Magnetic.Coupling,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_Coupling",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Magnetic.Coupling,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_Coupling",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.002772/0.002772, allocations: 79.89 kB / 496.4 MB, free: 9.887 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3943/0.3971, allocations: 55.57 MB / 0.5391 GB, free: 26.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.Coupling): time 0.003319/0.4004, allocations: 2.557 MB / 0.5416 GB, free: 24.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.4014, allocations: 0.6241 MB / 0.5422 GB, free: 24.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.4016, allocations: 10.22 kB / 0.5422 GB, free: 24.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.4017, allocations: 33.17 kB / 0.5422 GB, free: 24.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001263/0.4018, allocations: 60.05 kB / 0.5423 GB, free: 24.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.4021, allocations: 65.94 kB / 0.5423 GB, free: 24.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002527/0.4024, allocations: 264.2 kB / 0.5426 GB, free: 24.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.4026, allocations: 74.7 kB / 0.5426 GB, free: 24.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.4027, allocations: 99.75 kB / 0.5427 GB, free: 24.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.4028, allocations: 120.8 kB / 0.5429 GB, free: 24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.021e-05/0.4029, allocations: 25.06 kB / 0.5429 GB, free: 24 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.879e-05/0.4029, allocations: 22.12 kB / 0.5429 GB, free: 24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.958e-05/0.4029, allocations: 52.73 kB / 0.543 GB, free: 23.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.855e-05/0.403, allocations: 118.9 kB / 0.5431 GB, free: 23.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002777/0.4033, allocations: 269.4 kB / 0.5433 GB, free: 23.78 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4033, allocations: 0 / 0.5433 GB, free: 23.78 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4033, allocations: 0 / 0.5433 GB, free: 23.78 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.4033, allocations: 0 / 0.5433 GB, free: 23.78 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0007602/0.4041, allocations: 0.5261 MB / 0.5438 GB, free: 23.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.4041, allocations: 13.47 kB / 0.5438 GB, free: 23.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.395e-05/0.4042, allocations: 6.875 kB / 0.5439 GB, free: 23.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.4042, allocations: 62.83 kB / 0.5439 GB, free: 23.26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.023e-05/0.4043, allocations: 25.17 kB / 0.5439 GB, free: 23.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002798/0.4045, allocations: 244.1 kB / 0.5442 GB, free: 23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.277e-05/0.4046, allocations: 21.69 kB / 0.5442 GB, free: 22.99 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.539e-05/0.4046, allocations: 26.95 kB / 0.5442 GB, free: 22.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003812/0.405, allocations: 240.2 kB / 0.5444 GB, free: 22.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.405, allocations: 3.938 kB / 0.5445 GB, free: 22.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.361e-05/0.405, allocations: 11.19 kB / 0.5445 GB, free: 22.85 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.405, allocations: 3.25 kB / 0.5445 GB, free: 22.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003065/0.4053, allocations: 161.6 kB / 0.5446 GB, free: 22.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.4064, allocations: 0.8523 MB / 0.5455 GB, free: 22.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002586/0.4066, allocations: 120 kB / 0.5456 GB, free: 22.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.4067, allocations: 49.62 kB / 0.5456 GB, free: 22.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.4067, allocations: 7.297 kB / 0.5456 GB, free: 22.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.4068, allocations: 34.56 kB / 0.5457 GB, free: 22.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.212e-06/0.4068, allocations: 3.938 kB / 0.5457 GB, free: 22.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001137/0.4079, allocations: 0.5137 MB / 0.5462 GB, free: 21.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.4079, allocations: 54.59 kB / 0.5462 GB, free: 21.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.4081, allocations: 179 kB / 0.5464 GB, free: 21.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.4081, allocations: 25.7 kB / 0.5464 GB, free: 21.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.654e-05/0.4082, allocations: 166.8 kB / 0.5466 GB, free: 21.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.218e-05/0.4082, allocations: 56.92 kB / 0.5466 GB, free: 21.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.649e-05/0.4082, allocations: 42.03 kB / 0.5467 GB, free: 21.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.396e-05/0.4083, allocations: 321.5 kB / 0.547 GB, free: 20.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.4084, allocations: 48.47 kB / 0.547 GB, free: 20.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.4086, allocations: 98.47 kB / 0.5471 GB, free: 20.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002388/0.4088, allocations: 145.9 kB / 0.5472 GB, free: 20.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.4088, allocations: 3.188 kB / 0.5472 GB, free: 20.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003157/0.4091, allocations: 188.4 kB / 0.5474 GB, free: 20.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.4091, allocations: 6.438 kB / 0.5474 GB, free: 20.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.4091, allocations: 3.938 kB / 0.5474 GB, free: 20.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.4092, allocations: 6.609 kB / 0.5474 GB, free: 20.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002137/0.4094, allocations: 53 kB / 0.5475 GB, free: 20.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.4094, allocations: 7.188 kB / 0.5475 GB, free: 20.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.4095, allocations: 7.188 kB / 0.5475 GB, free: 20.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.4095, allocations: 14.31 kB / 0.5475 GB, free: 20.57 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 9.149e-05/0.4096, allocations: 131.5 kB / 0.5476 GB, free: 20.44 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.59e-05/0.4096, allocations: 14.31 kB / 0.5477 GB, free: 20.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.485e-05/0.4097, allocations: 20.3 kB / 0.5477 GB, free: 20.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.4097, allocations: 3.219 kB / 0.5477 GB, free: 20.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4097, allocations: 11.92 kB / 0.5477 GB, free: 20.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4097, allocations: 0 / 0.5477 GB, free: 20.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002291/0.4099, allocations: 267.4 kB / 0.548 GB, free: 20.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.4099, allocations: 0 / 0.548 GB, free: 20.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.4101, allocations: 43.94 kB / 0.548 GB, free: 20.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.4101, allocations: 0 / 0.548 GB, free: 20.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.4101, allocations: 3.219 kB / 0.548 GB, free: 20.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.4101, allocations: 0 / 0.548 GB, free: 20.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4101, allocations: 3.938 kB / 0.548 GB, free: 20.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004179/0.4105, allocations: 295.7 kB / 0.5483 GB, free: 19.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.261e-05/0.4106, allocations: 98.47 kB / 0.5484 GB, free: 19.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.472e-05/0.4106, allocations: 4 kB / 0.5484 GB, free: 19.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.4107, allocations: 13.59 kB / 0.5484 GB, free: 19.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.704e-05/0.4108, allocations: 14.47 kB / 0.5484 GB, free: 19.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-06/0.4108, allocations: 3.156 kB / 0.5484 GB, free: 19.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.823e-05/0.4109, allocations: 138.8 kB / 0.5485 GB, free: 19.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4109, allocations: 0 / 0.5485 GB, free: 19.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002692/0.4111, allocations: 41.81 kB / 0.5486 GB, free: 19.75 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (converter.i) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0005869/0.4117, allocations: 0.8237 MB / 0.5494 GB, free: 19.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003165/0.412, allocations: 118.7 kB / 0.5495 GB, free: 18.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.412, allocations: 0 / 0.5495 GB, free: 18.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.4122, allocations: 56.92 kB / 0.5496 GB, free: 18.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.4125, allocations: 20.78 kB / 0.5496 GB, free: 18.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/0.4148, allocations: 2.156 MB / 0.5517 GB, free: 17.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002219/0.415, allocations: 0.7391 MB / 0.5524 GB, free: 16.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.768e-05/0.4151, allocations: 18.42 kB / 0.5524 GB, free: 16.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.987e-05/0.4152, allocations: 62.39 kB / 0.5525 GB, free: 16.52 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4152, allocations: 0 / 0.5525 GB, free: 16.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02228/0.4375, allocations: 3.43 MB / 0.5558 GB, free: 15.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.233/9.671, allocations: 7.531 kB / 0.5558 GB, free: 15.95 MB / 382.1 MB " [Timeout remaining time 650] (rm -f HanserModelica_HanserModelica.Magnetic.Coupling.pipe ; mkfifo HanserModelica_HanserModelica.Magnetic.Coupling.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Magnetic.Coupling.pipe >> ../files/HanserModelica_HanserModelica.Magnetic.Coupling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Magnetic_Coupling_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Magnetic_Coupling.fmu > HanserModelica_HanserModelica.Magnetic.Coupling.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.741679419996217] Failed to read output from testmodel.py, exit status != 0: 9.802740390994586 9.825390773 9.418112541 Calling exit ...