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.001261/0.001261, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.001367/0.001367, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.438/1.438, allocations: 230.5 MB / 254.7 MB, free: 15.01 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.001919/0.001919, allocations: 67.89 kB / 373.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09559/0.0975, allocations: 53.32 MB / 426.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.2003/0.2978, allocations: 6.041 MB / 432.9 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002699/0.3005, allocations: 1.729 MB / 434.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005488/0.3011, allocations: 34.12 kB / 434.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004279/0.3015, allocations: 248.4 kB / 434.9 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000408/0.3019, allocations: 222.3 kB / 435.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008115/0.3027, allocations: 0.5236 MB / 435.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.3038, allocations: 1.385 MB / 437.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000575/0.3044, allocations: 446.2 kB / 437.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004866/0.3049, allocations: 486.8 kB / 438 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004201/0.3053, allocations: 0.4963 MB / 438.5 MB, free: 5.883 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001448/0.3054, allocations: 122.6 kB / 438.6 MB, free: 5.883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002224/0.3057, allocations: 138.6 kB / 438.7 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.3058, allocations: 265.8 kB / 439 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003749/0.3062, allocations: 0.6137 MB / 439.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001554/0.3077, allocations: 1.637 MB / 441.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3077, allocations: 4.828 kB / 441.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3077, allocations: 0 / 441.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.686e-05/0.3078, allocations: 4.906 kB / 441.3 MB, free: 4.645 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.001833/0.3096, allocations: 1.495 MB / 442.8 MB, free: 3.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.3096, allocations: 9.656 kB / 442.8 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001551/0.3098, allocations: 178.6 kB / 442.9 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003353/0.3101, allocations: 166.7 kB / 443.1 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/0.3112, allocations: 0.7739 MB / 443.9 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.937e-05/0.3113, allocations: 91.41 kB / 444 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.3114, allocations: 124.8 kB / 444.1 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.3131, allocations: 1.269 MB / 445.4 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.472e-05/0.3131, allocations: 11.09 kB / 445.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.699e-05/0.3132, allocations: 54.25 kB / 445.4 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.773e-05/0.3132, allocations: 31.47 kB / 445.4 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.3143, allocations: 0.6843 MB / 446.1 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005871/0.3202, allocations: 6.797 MB / 452.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006612/0.3209, allocations: 252.3 kB / 453.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003344/0.3212, allocations: 157.4 kB / 453.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001323/0.3213, allocations: 84.06 kB / 453.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/0.3214, allocations: 45.33 kB / 453.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.993e-06/0.3214, allocations: 0 / 453.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002624/0.324, allocations: 1.426 MB / 454.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/0.3241, allocations: 81.19 kB / 455 MB, free: 10.58 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007897/0.3249, allocations: 0.6622 MB / 455.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/0.3249, allocations: 31.08 kB / 455.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005395/0.3254, allocations: 0.7028 MB / 456.4 MB, free: 9.699 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.3255, allocations: 121.2 kB / 456.5 MB, free: 9.609 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001919/0.3257, allocations: 141 kB / 456.6 MB, free: 9.527 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002206/0.3259, allocations: 391.5 kB / 457 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002917/0.3262, allocations: 148.2 kB / 457.1 MB, free: 9.133 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006946/0.3269, allocations: 0.5484 MB / 457.7 MB, free: 8.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.00133/0.3283, allocations: 0.9582 MB / 458.6 MB, free: 7.578 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/0.3283, allocations: 4.719 kB / 458.6 MB, free: 7.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001439/0.3297, allocations: 0.7985 MB / 459.4 MB, free: 7.215 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.3297, allocations: 15.34 kB / 459.5 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.3298, allocations: 19.22 kB / 459.5 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002824/0.33, allocations: 85.14 kB / 459.6 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005156/0.3306, allocations: 184.5 kB / 459.7 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002957/0.3335, allocations: 3.32 MB / 463.1 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005315/0.334, allocations: 30.81 kB / 463.1 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.459e-05/0.3341, allocations: 42.92 kB / 463.1 MB, free: 3.898 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.0005303/0.3346, allocations: 282.2 kB / 463.4 MB, free: 3.676 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.3348, allocations: 75.72 kB / 463.5 MB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001187/0.3349, allocations: 73.5 kB / 463.6 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.3349, allocations: 4.656 kB / 463.6 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.3349, allocations: 2.594 kB / 463.6 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.3349, allocations: 0.9844 kB / 463.6 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/0.337, allocations: 1.245 MB / 464.8 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.337, allocations: 2 kB / 464.8 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003084/0.3373, allocations: 68.73 kB / 464.9 MB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001674/0.3375, allocations: 59.14 kB / 464.9 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.3375, allocations: 7.688 kB / 464.9 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002654/0.3402, allocations: 3.054 MB / 468 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.3402, allocations: 3.422 kB / 468 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.3412, allocations: 0.6367 MB / 468.6 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.3414, allocations: 142 kB / 468.8 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.408e-05/0.3415, allocations: 8.406 kB / 468.8 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.3417, allocations: 16.73 kB / 468.8 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.088e-05/0.3418, allocations: 30.22 kB / 468.8 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.3418, allocations: 11.95 kB / 468.8 MB, free: 15.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006026/0.3424, allocations: 436.4 kB / 469.3 MB, free: 14.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3424, allocations: 0 / 469.3 MB, free: 14.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009958/0.3434, allocations: 154.4 kB / 469.4 MB, free: 14.87 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.001307/0.3447, allocations: 1.203 MB / 470.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.3459, allocations: 0.6218 MB / 471.2 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.3459, allocations: 0.625 kB / 471.2 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005027/0.3464, allocations: 362.5 kB / 471.6 MB, free: 13.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000536/0.347, allocations: 74.19 kB / 471.7 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008866/0.3558, allocations: 6.46 MB / 478.1 MB, free: 8.227 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007499/0.3566, allocations: 1.035 MB / 479.2 MB, free: 7.379 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002696/0.3569, allocations: 91.23 kB / 479.3 MB, free: 7.332 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004888/0.3574, allocations: 424.4 kB / 479.7 MB, free: 6.957 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3574, allocations: 0 / 479.7 MB, free: 6.957 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06391/0.4213, allocations: 12.86 MB / 492.5 MB, free: 12.81 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/11.01, allocations: 15.73 kB / 492.5 MB, free: 12.8 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.295175933279097] 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.098488172981888 11.119543027 10.807939229 Calling exit ...