Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.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.001244/0.001244, allocations: 107.4 kB / 16.45 MB, free: 6.508 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.445/1.445, allocations: 230.6 MB / 249.8 MB, free: 9.207 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.00166/0.00166, allocations: 210.9 kB / 306 MB, free: 4.27 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.04124/0.04124, allocations: 8.909 MB / 371 MB, free: 3.41 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.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",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.002555/0.002555, allocations: 80.3 kB / 495.7 MB, free: 9.828 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2954, allocations: 55.57 MB / 0.5384 GB, free: 26.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.003252/0.2987, allocations: 2.892 MB / 0.5412 GB, free: 24.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009403/0.2996, allocations: 0.6914 MB / 0.5419 GB, free: 24.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.2998, allocations: 7.312 kB / 0.5419 GB, free: 24.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.3, allocations: 54.33 kB / 0.5419 GB, free: 24.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002224/0.3002, allocations: 94.31 kB / 0.542 GB, free: 23.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001446/0.3003, allocations: 84.77 kB / 0.5421 GB, free: 23.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002848/0.3006, allocations: 372.3 kB / 0.5424 GB, free: 23.72 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002218/0.3008, allocations: 104.5 kB / 0.5425 GB, free: 23.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.301, allocations: 142.5 kB / 0.5427 GB, free: 23.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.3011, allocations: 163.6 kB / 0.5428 GB, free: 23.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.71e-05/0.3012, allocations: 35.19 kB / 0.5429 GB, free: 23.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.259e-05/0.3012, allocations: 35.22 kB / 0.5429 GB, free: 23.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.561e-05/0.3013, allocations: 75.08 kB / 0.543 GB, free: 23.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.3014, allocations: 169 kB / 0.5431 GB, free: 23.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000317/0.3017, allocations: 416.4 kB / 0.5435 GB, free: 23.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.3017, allocations: 0 / 0.5435 GB, free: 23.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3017, allocations: 0 / 0.5435 GB, free: 23.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.3017, allocations: 0 / 0.5435 GB, free: 23.17 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.00076/0.3024, allocations: 0.604 MB / 0.5441 GB, free: 22.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.3025, allocations: 9.5 kB / 0.5441 GB, free: 22.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.094e-05/0.3025, allocations: 66.72 kB / 0.5442 GB, free: 22.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.381e-05/0.3026, allocations: 32.28 kB / 0.5442 GB, free: 22.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002809/0.3029, allocations: 269.1 kB / 0.5445 GB, free: 22.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.3029, allocations: 21.72 kB / 0.5445 GB, free: 22.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.622e-05/0.3029, allocations: 36.7 kB / 0.5445 GB, free: 22.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004333/0.3034, allocations: 271.3 kB / 0.5448 GB, free: 22.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.3034, allocations: 3.953 kB / 0.5448 GB, free: 22.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.556e-05/0.3034, allocations: 11.22 kB / 0.5448 GB, free: 22.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.3034, allocations: 6.562 kB / 0.5448 GB, free: 22.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004016/0.3038, allocations: 216.3 kB / 0.545 GB, free: 22.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.305, allocations: 1.04 MB / 0.546 GB, free: 21.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000316/0.3053, allocations: 140.7 kB / 0.5462 GB, free: 21.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/0.3055, allocations: 80.94 kB / 0.5463 GB, free: 21.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.3055, allocations: 3.062 kB / 0.5463 GB, free: 21.29 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.599e-05/0.3055, allocations: 34.56 kB / 0.5463 GB, free: 21.24 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.3055, allocations: 0 / 0.5463 GB, free: 21.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0012/0.3067, allocations: 0.6915 MB / 0.547 GB, free: 20.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.143e-05/0.3067, allocations: 54.66 kB / 0.547 GB, free: 20.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.3069, allocations: 191.7 kB / 0.5472 GB, free: 20.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.3069, allocations: 32.83 kB / 0.5472 GB, free: 20.49 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.711e-05/0.307, allocations: 193.1 kB / 0.5474 GB, free: 20.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.118e-05/0.307, allocations: 61.34 kB / 0.5475 GB, free: 20.28 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.645e-05/0.307, allocations: 38.22 kB / 0.5475 GB, free: 20.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.697e-05/0.3071, allocations: 332.7 kB / 0.5478 GB, free: 19.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.3072, allocations: 58.58 kB / 0.5479 GB, free: 19.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.3074, allocations: 97.12 kB / 0.548 GB, free: 19.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000284/0.3077, allocations: 169.8 kB / 0.5481 GB, free: 19.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-06/0.3077, allocations: 3.344 kB / 0.5481 GB, free: 19.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004088/0.3081, allocations: 231.5 kB / 0.5484 GB, free: 19.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.3081, allocations: 6.375 kB / 0.5484 GB, free: 19.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.3081, allocations: 3.062 kB / 0.5484 GB, free: 19.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001331/0.3082, allocations: 25.2 kB / 0.5484 GB, free: 19.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001979/0.3084, allocations: 40.77 kB / 0.5484 GB, free: 19.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006744/0.3091, allocations: 1.375 MB / 0.5498 GB, free: 18.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.3092, allocations: 13.33 kB / 0.5498 GB, free: 18.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.3092, allocations: 5.719 kB / 0.5498 GB, free: 18.2 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.3094, allocations: 141.7 kB / 0.5499 GB, free: 18.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.132e-05/0.3094, allocations: 24.67 kB / 0.55 GB, free: 18.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.886e-05/0.3094, allocations: 20.5 kB / 0.55 GB, free: 18.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3094, allocations: 3.094 kB / 0.55 GB, free: 18.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.3094, allocations: 0 / 0.55 GB, free: 18.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.3094, allocations: 4.062 kB / 0.55 GB, free: 18.03 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000705/0.3101, allocations: 0.6097 MB / 0.5506 GB, free: 17.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3102, allocations: 0 / 0.5506 GB, free: 17.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.3103, allocations: 40.12 kB / 0.5506 GB, free: 17.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.03e-05/0.3104, allocations: 25.73 kB / 0.5506 GB, free: 17.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.3104, allocations: 11.38 kB / 0.5507 GB, free: 17.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005779/0.311, allocations: 1.371 MB / 0.552 GB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.311, allocations: 0 / 0.552 GB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005112/0.3115, allocations: 373.1 kB / 0.5523 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.339e-05/0.3115, allocations: 94.67 kB / 0.5524 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.465e-05/0.3116, allocations: 6.969 kB / 0.5524 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.3117, allocations: 13.53 kB / 0.5525 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.555e-05/0.3118, allocations: 9.453 kB / 0.5525 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.3118, allocations: 3 kB / 0.5525 GB, free: 15.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.871e-05/0.3119, allocations: 155.1 kB / 0.5526 GB, free: 15.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3119, allocations: 2.875 kB / 0.5526 GB, free: 15.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003166/0.3122, allocations: 51.47 kB / 0.5527 GB, free: 15.68 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,machine.inertia.w,load.phi) * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000664/0.3129, allocations: 0.8959 MB / 0.5535 GB, free: 14.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005057/0.3134, allocations: 271.5 kB / 0.5538 GB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3134, allocations: 8.25 kB / 0.5538 GB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.3136, allocations: 190.2 kB / 0.554 GB, free: 14.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.314, allocations: 43.33 kB / 0.554 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.3166, allocations: 2.572 MB / 0.5565 GB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/0.3167, allocations: 0.7577 MB / 0.5573 GB, free: 11.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.434e-05/0.3168, allocations: 21.77 kB / 0.5573 GB, free: 11.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.6e-05/0.3169, allocations: 82.55 kB / 0.5574 GB, free: 11.91 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3169, allocations: 3.938 kB / 0.5574 GB, free: 11.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0319/0.3488, allocations: 4.717 MB / 0.562 GB, free: 11.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.933/10.28, allocations: 17.16 kB / 0.562 GB, free: 11.2 MB / 382.1 MB " [Timeout remaining time 650] (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Rotational.TestDCPMMachine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.065800305994344] Failed to read output from testmodel.py, exit status != 0: 10.366007757998887 10.388763478 10.083042059 Calling exit ...