Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001329/0.001329, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.444/1.444, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002967/0.002967, allocations: 68.77 kB / 378.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2784, allocations: 53.37 MB / 431.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007804/0.2862, allocations: 6.065 MB / 438 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00374/0.2899, allocations: 1.741 MB / 439.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008092/0.2908, allocations: 43.69 kB / 439.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005863/0.2913, allocations: 245.6 kB / 440 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005694/0.2919, allocations: 225.7 kB / 440.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.293, allocations: 0.5265 MB / 440.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001496/0.2945, allocations: 1.391 MB / 442.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006873/0.2952, allocations: 448.3 kB / 442.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006011/0.2958, allocations: 0.4904 MB / 443.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005601/0.2963, allocations: 0.4934 MB / 443.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.2965, allocations: 120 kB / 443.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002307/0.2967, allocations: 143.9 kB / 443.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002035/0.2969, allocations: 263.1 kB / 444.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005031/0.2974, allocations: 0.6139 MB / 444.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001641/0.2991, allocations: 1.641 MB / 446.4 MB, free: 8.402 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2991, allocations: 0 / 446.4 MB, free: 8.402 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2991, allocations: 0 / 446.4 MB, free: 8.402 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.2991, allocations: 0 / 446.4 MB, free: 8.402 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.002062/0.3012, allocations: 1.42 MB / 447.8 MB, free: 6.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.3012, allocations: 12.03 kB / 447.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001869/0.3014, allocations: 181.7 kB / 448 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003575/0.3017, allocations: 171 kB / 448.1 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.3029, allocations: 0.6833 MB / 448.8 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.395e-05/0.303, allocations: 94.41 kB / 448.9 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/0.3031, allocations: 124 kB / 449 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002036/0.3052, allocations: 1.264 MB / 450.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.691e-05/0.3052, allocations: 7.938 kB / 450.3 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.299e-05/0.3053, allocations: 52 kB / 450.3 MB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.212e-05/0.3053, allocations: 32 kB / 450.4 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001313/0.3066, allocations: 0.6851 MB / 451.1 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006713/0.3134, allocations: 6.684 MB / 457.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007088/0.3141, allocations: 245.2 kB / 458 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003789/0.3144, allocations: 169.6 kB / 458.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/0.3146, allocations: 7.984 kB / 458.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.3146, allocations: 38.56 kB / 458.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 2.585e-06/0.3146, allocations: 0 / 458.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002507/0.3171, allocations: 1.276 MB / 459.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.3172, allocations: 81.11 kB / 459.6 MB, free: 10.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008536/0.318, allocations: 0.6687 MB / 460.2 MB, free: 9.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.837e-05/0.3181, allocations: 37.7 kB / 460.3 MB, free: 9.777 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005018/0.3186, allocations: 0.6976 MB / 461 MB, free: 9.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.3187, allocations: 131 kB / 461.1 MB, free: 8.941 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/0.3188, allocations: 142.5 kB / 461.2 MB, free: 8.797 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.319, allocations: 382.8 kB / 461.6 MB, free: 8.414 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002962/0.3193, allocations: 149.9 kB / 461.7 MB, free: 8.266 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006751/0.32, allocations: 0.5472 MB / 462.3 MB, free: 7.523 MB / 366.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.3212, allocations: 0.8082 MB / 463.1 MB, free: 6.516 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.3212, allocations: 4 kB / 463.1 MB, free: 6.512 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001404/0.3226, allocations: 0.802 MB / 463.9 MB, free: 5.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.3226, allocations: 14.66 kB / 463.9 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/0.3227, allocations: 12 kB / 463.9 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002765/0.3229, allocations: 77.69 kB / 464 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005669/0.3235, allocations: 192.2 kB / 464.2 MB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002757/0.3263, allocations: 3.121 MB / 467.3 MB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004424/0.3267, allocations: 31.98 kB / 467.4 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.259e-05/0.3268, allocations: 40 kB / 467.4 MB, free: 1.988 MB / 366.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000537/0.3273, allocations: 273.3 kB / 467.7 MB, free: 1.711 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.3274, allocations: 79.52 kB / 467.7 MB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001258/0.3275, allocations: 74.42 kB / 467.8 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.3276, allocations: 4.141 kB / 467.8 MB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.3276, allocations: 4 kB / 467.8 MB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.3276, allocations: 11.91 kB / 467.8 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001886/0.3295, allocations: 1.219 MB / 469 MB, free: 260 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3295, allocations: 0 / 469 MB, free: 260 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003096/0.3298, allocations: 67.89 kB / 469.1 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00016/0.3299, allocations: 53.62 kB / 469.2 MB, free: 132 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.33, allocations: 8 kB / 469.2 MB, free: 124 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002305/0.3323, allocations: 2.851 MB / 472 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.3323, allocations: 3.938 kB / 472 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008994/0.3332, allocations: 0.6317 MB / 472.7 MB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.3333, allocations: 63.48 kB / 472.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.102e-05/0.3333, allocations: 12.05 kB / 472.7 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.3336, allocations: 12 kB / 472.7 MB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.747e-05/0.3336, allocations: 27.89 kB / 472.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.3337, allocations: 15.98 kB / 472.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005195/0.3342, allocations: 435 kB / 473.2 MB, free: 11.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3342, allocations: 4 kB / 473.2 MB, free: 11.81 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008603/0.3351, allocations: 160 kB / 473.4 MB, free: 11.66 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.v) * 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 (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001213/0.3363, allocations: 1.185 MB / 474.6 MB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.3374, allocations: 0.6326 MB / 475.2 MB, free: 9.773 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3374, allocations: 0 / 475.2 MB, free: 9.773 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004831/0.3378, allocations: 361.1 kB / 475.5 MB, free: 9.395 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005119/0.3383, allocations: 80.42 kB / 475.6 MB, free: 9.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008637/0.347, allocations: 6.463 MB / 482.1 MB, free: 2.297 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007212/0.3477, allocations: 1.034 MB / 483.1 MB, free: 1.234 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002598/0.348, allocations: 94 kB / 483.2 MB, free: 1.141 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004811/0.3484, allocations: 423.3 kB / 483.6 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3484, allocations: 0 / 483.6 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04975/0.3982, allocations: 13.31 MB / 496.9 MB, free: 3.586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.17, allocations: 10.34 kB / 496.9 MB, free: 3.578 MB / 398.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.544660157058388] Failed to read output from testmodel.py, exit status != 0: ['time', 'capacitor2a.v', 'capacitor2b.v', 'directCapacitor1.capacitor.v', 'directInductor3.inductor.i', 'inductor4a.i', 'inductor4b.i'] 11.264514539856464 11.287093409 10.983474762 Calling exit ...