Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 193.7 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 43.92 kB / 370.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3263, allocations: 52.17 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.009962/0.3362, allocations: 5.279 MB / 428.4 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004986/0.3412, allocations: 1.617 MB / 430 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001527/0.3427, allocations: 39.75 kB / 430 MB, free: 7.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001218/0.344, allocations: 253.5 kB / 430.3 MB, free: 7.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001622/0.3456, allocations: 217.7 kB / 430.5 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002149/0.3477, allocations: 0.5032 MB / 431 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002946/0.3507, allocations: 1.387 MB / 432.4 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000988/0.3517, allocations: 412.3 kB / 432.8 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008193/0.3525, allocations: 490.1 kB / 433.2 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006969/0.3532, allocations: 437.2 kB / 433.7 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001961/0.3534, allocations: 120 kB / 433.8 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003238/0.3537, allocations: 136 kB / 433.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003038/0.354, allocations: 267 kB / 434.2 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006015/0.3546, allocations: 493.4 kB / 434.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002297/0.3569, allocations: 1.647 MB / 436.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.3569, allocations: 0 / 436.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3569, allocations: 0 / 436.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.612e-05/0.3569, allocations: 0 / 436.3 MB, free: 1.176 MB / 334.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.002893/0.3598, allocations: 1.417 MB / 437.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.3599, allocations: 8.031 kB / 437.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002925/0.3602, allocations: 151 kB / 437.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.3619, allocations: 0.691 MB / 438.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/0.362, allocations: 86.41 kB / 438.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00022/0.3623, allocations: 119.9 kB / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/0.3647, allocations: 1.314 MB / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.911e-05/0.3648, allocations: 11.94 kB / 440.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/0.3649, allocations: 52 kB / 440.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.565e-05/0.3649, allocations: 32 kB / 440.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001481/0.3664, allocations: 0.6929 MB / 440.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006559/0.3729, allocations: 6.279 MB / 447.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000726/0.3737, allocations: 253.2 kB / 447.4 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003928/0.374, allocations: 165.6 kB / 447.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001055/0.3742, allocations: 8 kB / 447.6 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.545e-05/0.3742, allocations: 38.56 kB / 447.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.024e-06/0.3742, allocations: 0 / 447.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002666/0.3769, allocations: 1.277 MB / 448.9 MB, free: 3.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.3769, allocations: 84.98 kB / 449 MB, free: 3.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009521/0.3779, allocations: 0.6801 MB / 449.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.348e-05/0.3779, allocations: 25.7 kB / 449.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005634/0.3785, allocations: 0.7093 MB / 450.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.3786, allocations: 119.1 kB / 450.5 MB, free: 2.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/0.3788, allocations: 146.5 kB / 450.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002231/0.379, allocations: 382.8 kB / 451 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002999/0.3793, allocations: 149.9 kB / 451.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006149/0.3799, allocations: 0.555 MB / 451.7 MB, free: 0.832 MB / 350.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.001201/0.3811, allocations: 0.8026 MB / 452.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.305e-05/0.3811, allocations: 4 kB / 452.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001411/0.3826, allocations: 0.799 MB / 453.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.3826, allocations: 12 kB / 453.3 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/0.3826, allocations: 12 kB / 453.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002764/0.3829, allocations: 81.62 kB / 453.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005499/0.3834, allocations: 179.7 kB / 453.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002842/0.3863, allocations: 3.073 MB / 456.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004163/0.3867, allocations: 35.81 kB / 456.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.496e-05/0.3867, allocations: 40 kB / 456.7 MB, free: 11.39 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.0004394/0.3872, allocations: 277.5 kB / 457 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.3873, allocations: 79.47 kB / 457.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000125/0.3874, allocations: 70.36 kB / 457.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3875, allocations: 4 kB / 457.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.3875, allocations: 0 / 457.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.3875, allocations: 7.984 kB / 457.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.3894, allocations: 1.052 MB / 458.2 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3894, allocations: 4 kB / 458.2 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003204/0.3897, allocations: 59.95 kB / 458.3 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001687/0.3899, allocations: 61.62 kB / 458.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.064e-05/0.3899, allocations: 8 kB / 458.4 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002362/0.3923, allocations: 2.797 MB / 461.2 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.3923, allocations: 4.031 kB / 461.2 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009682/0.3932, allocations: 0.6355 MB / 461.8 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.3934, allocations: 63.47 kB / 461.9 MB, free: 5.957 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.768e-05/0.3934, allocations: 12.11 kB / 461.9 MB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003016/0.3937, allocations: 16 kB / 461.9 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.718e-05/0.3938, allocations: 27.89 kB / 461.9 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.3938, allocations: 12 kB / 461.9 MB, free: 5.891 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000529/0.3943, allocations: 431 kB / 462.3 MB, free: 5.473 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3943, allocations: 4 kB / 462.3 MB, free: 5.469 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009586/0.3953, allocations: 152 kB / 462.5 MB, free: 5.32 MB / 366.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.0001722/0.3955, allocations: 111.2 kB / 462.6 MB, free: 5.203 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.3967, allocations: 0.6316 MB / 463.2 MB, free: 4.547 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3967, allocations: 5.625 kB / 463.2 MB, free: 4.543 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005056/0.3972, allocations: 345.3 kB / 463.6 MB, free: 4.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005552/0.3977, allocations: 86.09 kB / 463.7 MB, free: 4.102 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00347/0.4012, allocations: 1.86 MB / 465.5 MB, free: 2.203 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005538/0.4018, allocations: 446.9 kB / 466 MB, free: 1.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002482/0.402, allocations: 81.94 kB / 466 MB, free: 1.648 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.4021, allocations: 55.42 kB / 466.1 MB, free: 1.594 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4021, allocations: 4 kB / 466.1 MB, free: 1.59 MB / 366.1 MB Notification: Performance of Templates: time 0.01471/0.4168, allocations: 6.34 MB / 472.4 MB, free: 11.38 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.9062517788261175]