Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.001296/0.001296, 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.00142/0.00142, 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.44/1.44, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ResonanceCircuits",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.002713/0.002713, allocations: 60.55 kB / 378.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2952, allocations: 53.37 MB / 431.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006638/0.3019, allocations: 5.44 MB / 437.4 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00294/0.3048, allocations: 1.531 MB / 438.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004677/0.3053, allocations: 35.69 kB / 439 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000479/0.3058, allocations: 213.8 kB / 439.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005329/0.3063, allocations: 202 kB / 439.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008179/0.3071, allocations: 423.2 kB / 439.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001211/0.3083, allocations: 1.126 MB / 440.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000544/0.3089, allocations: 336.9 kB / 441.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005386/0.3094, allocations: 422.2 kB / 441.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004708/0.3099, allocations: 429.6 kB / 442.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.31, allocations: 84 kB / 442.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002002/0.3102, allocations: 112 kB / 442.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001778/0.3104, allocations: 211.1 kB / 442.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004157/0.3108, allocations: 0.4971 MB / 443 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001246/0.312, allocations: 1.19 MB / 444.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.312, allocations: 0 / 444.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.312, allocations: 0 / 444.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.3121, allocations: 0 / 444.1 MB, free: 10.61 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001829/0.3139, allocations: 1.271 MB / 445.4 MB, free: 9.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.3139, allocations: 8.031 kB / 445.4 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001591/0.3141, allocations: 156.2 kB / 445.6 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003498/0.3144, allocations: 151.1 kB / 445.7 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.3155, allocations: 0.5821 MB / 446.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.832e-05/0.3156, allocations: 77.94 kB / 446.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.3157, allocations: 96 kB / 446.5 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.3174, allocations: 1.035 MB / 447.5 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.187e-05/0.3174, allocations: 7.938 kB / 447.5 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.448e-05/0.3175, allocations: 44 kB / 447.6 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.456e-05/0.3175, allocations: 24 kB / 447.6 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.3187, allocations: 0.5539 MB / 448.1 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005403/0.3241, allocations: 5.417 MB / 453.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006397/0.3247, allocations: 224.9 kB / 453.8 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003089/0.325, allocations: 145.6 kB / 453.9 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001086/0.3252, allocations: 12.27 kB / 453.9 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.906e-05/0.3252, allocations: 42.5 kB / 454 MB, free: 272 kB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.014e-06/0.3252, allocations: 0 / 454 MB, free: 272 kB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003891/0.3291, allocations: 1.583 MB / 455.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.325e-05/0.3291, allocations: 92.98 kB / 455.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007555/0.3299, allocations: 0.6451 MB / 456.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.287e-05/0.3299, allocations: 33.7 kB / 456.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004909/0.3304, allocations: 0.6122 MB / 456.9 MB, free: 13.19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.3306, allocations: 150.8 kB / 457.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.3308, allocations: 146.5 kB / 457.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002094/0.331, allocations: 382.8 kB / 457.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003232/0.3313, allocations: 157.9 kB / 457.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000603/0.3319, allocations: 493.1 kB / 458.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009968/0.3329, allocations: 0.6986 MB / 458.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.3329, allocations: 3.938 kB / 458.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001187/0.3341, allocations: 0.7161 MB / 459.7 MB, free: 10.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.3341, allocations: 12 kB / 459.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/0.3341, allocations: 15.94 kB / 459.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.174e-05/0.3342, allocations: 16 kB / 459.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006699/0.3348, allocations: 203.6 kB / 459.9 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.217e-05/0.3349, allocations: 27.91 kB / 459.9 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003581/0.3352, allocations: 32 kB / 460 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.306e-05/0.3353, allocations: 48.05 kB / 460 MB, free: 9.781 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * 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 0.0003455/0.3356, allocations: 225.5 kB / 460.2 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.3357, allocations: 79.48 kB / 460.3 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.3359, allocations: 78.67 kB / 460.4 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.3359, allocations: 7.938 kB / 460.4 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.3359, allocations: 0 / 460.4 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3359, allocations: 0 / 460.4 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/0.3381, allocations: 1.281 MB / 461.7 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.3381, allocations: 8.156 kB / 461.7 MB, free: 8.031 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004532/0.3385, allocations: 99.86 kB / 461.8 MB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.507e-06/0.3386, allocations: 7.938 kB / 461.8 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.3386, allocations: 15.94 kB / 461.8 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.892e-06/0.3386, allocations: 4 kB / 461.8 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.3386, allocations: 4 kB / 461.8 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.3397, allocations: 0.7207 MB / 462.5 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.182e-05/0.3398, allocations: 63.48 kB / 462.6 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.786e-05/0.3398, allocations: 12 kB / 462.6 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002974/0.3401, allocations: 19.98 kB / 462.6 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.215e-05/0.3402, allocations: 31.94 kB / 462.6 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.3402, allocations: 12 kB / 462.7 MB, free: 7.012 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004979/0.3407, allocations: 427 kB / 463.1 MB, free: 6.602 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3407, allocations: 4 kB / 463.1 MB, free: 6.598 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006377/0.3414, allocations: 136 kB / 463.2 MB, free: 6.465 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * 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.001351/0.3427, allocations: 1.246 MB / 464.5 MB, free: 5.176 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008353/0.3435, allocations: 434.2 kB / 464.9 MB, free: 4.758 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.3435, allocations: 3.938 kB / 464.9 MB, free: 4.754 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002779/0.3438, allocations: 145.5 kB / 465 MB, free: 4.617 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005288/0.3444, allocations: 75.23 kB / 465.1 MB, free: 4.539 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008337/0.3527, allocations: 6.154 MB / 471.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006557/0.3533, allocations: 1.004 MB / 472.3 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002918/0.3536, allocations: 98.05 kB / 472.4 MB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004597/0.3541, allocations: 387.3 kB / 472.7 MB, free: 12.39 MB / 382.1 MB Notification: Performance of SimCode: time 1.583e-06/0.3541, allocations: 4 kB / 472.7 MB, free: 12.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04054/0.3946, allocations: 12.23 MB / 485 MB, free: 284 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.874/9.268, allocations: 8.438 kB / 485 MB, free: 276 kB / 382.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.627301532775164] Failed to read output from testmodel.py, exit status != 0: ['time', 'capacitor1.v', 'capacitor2.v', 'inductor2.i'] 9.346696821972728 9.360933619 9.045798665 Calling exit ...