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.001254/0.001254, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.002302/0.002302, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.447/1.447, allocations: 225.6 MB / 252.5 MB, free: 13.02 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 43.92 kB / 370.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2568, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007833/0.2647, allocations: 6.045 MB / 428.7 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003451/0.2681, allocations: 1.656 MB / 430.3 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009169/0.269, allocations: 39.69 kB / 430.4 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007769/0.2698, allocations: 245.6 kB / 430.6 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000899/0.2707, allocations: 229.7 kB / 430.8 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00138/0.2721, allocations: 0.5148 MB / 431.4 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001919/0.274, allocations: 1.383 MB / 432.7 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008402/0.2749, allocations: 448.3 kB / 433.2 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007402/0.2756, allocations: 494.1 kB / 433.7 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007055/0.2763, allocations: 0.4934 MB / 434.2 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002255/0.2765, allocations: 120 kB / 434.3 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002959/0.2768, allocations: 139.9 kB / 434.4 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002518/0.2771, allocations: 267.1 kB / 434.7 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006811/0.2778, allocations: 0.6139 MB / 435.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001891/0.2796, allocations: 1.634 MB / 436.9 MB, free: 260 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2797, allocations: 0 / 436.9 MB, free: 260 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2797, allocations: 0 / 436.9 MB, free: 260 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.021e-05/0.2797, allocations: 0 / 436.9 MB, free: 260 kB / 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.002709/0.2824, allocations: 1.424 MB / 438.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.2825, allocations: 8.031 kB / 438.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002296/0.2827, allocations: 177.7 kB / 438.5 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002411/0.2829, allocations: 151 kB / 438.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/0.2843, allocations: 0.6795 MB / 439.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.024e-05/0.2844, allocations: 90.41 kB / 439.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001891/0.2845, allocations: 120 kB / 439.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002204/0.2868, allocations: 1.268 MB / 440.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.859e-05/0.2868, allocations: 3.938 kB / 440.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.239e-05/0.2869, allocations: 56 kB / 440.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.185e-05/0.2869, allocations: 32 kB / 440.9 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001411/0.2883, allocations: 0.6851 MB / 441.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007381/0.2957, allocations: 6.684 MB / 448.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007667/0.2965, allocations: 253.2 kB / 448.5 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003755/0.2968, allocations: 153.6 kB / 448.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001233/0.297, allocations: 12 kB / 448.7 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.297, allocations: 34.55 kB / 448.7 MB, free: 3.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.565e-06/0.297, allocations: 0 / 448.7 MB, free: 3.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002788/0.2998, allocations: 1.27 MB / 450 MB, free: 2.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.2999, allocations: 89.09 kB / 450.1 MB, free: 2.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008521/0.3007, allocations: 0.6569 MB / 450.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.237e-05/0.3008, allocations: 37.69 kB / 450.8 MB, free: 1.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005459/0.3013, allocations: 0.7054 MB / 451.5 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.3014, allocations: 115.1 kB / 451.6 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002142/0.3016, allocations: 146.5 kB / 451.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.3018, allocations: 386.7 kB / 452.1 MB, free: 308 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003485/0.3022, allocations: 141.9 kB / 452.3 MB, free: 164 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006717/0.3029, allocations: 0.5511 MB / 452.8 MB, free: 15.41 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.001188/0.304, allocations: 0.7958 MB / 453.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.3041, allocations: 7.938 kB / 453.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001428/0.3055, allocations: 0.7974 MB / 454.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.3055, allocations: 12 kB / 454.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.089e-05/0.3055, allocations: 16.28 kB / 454.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000295/0.3058, allocations: 90.34 kB / 454.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005491/0.3064, allocations: 179.7 kB / 454.7 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003084/0.3095, allocations: 3.122 MB / 457.8 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004112/0.3099, allocations: 39.92 kB / 457.9 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-05/0.3099, allocations: 44 kB / 457.9 MB, free: 9.879 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.0004787/0.3104, allocations: 277.5 kB / 458.2 MB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.3105, allocations: 83.42 kB / 458.3 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.3107, allocations: 70.34 kB / 458.3 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.3107, allocations: 4 kB / 458.3 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.3107, allocations: 3.938 kB / 458.3 MB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.3107, allocations: 0 / 458.3 MB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001967/0.3127, allocations: 1.219 MB / 459.6 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3127, allocations: 0 / 459.6 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003069/0.313, allocations: 59.95 kB / 459.6 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001625/0.3131, allocations: 61.72 kB / 459.7 MB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.3132, allocations: 15.98 kB / 459.7 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002411/0.3156, allocations: 2.846 MB / 462.5 MB, free: 4.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3156, allocations: 4 kB / 462.5 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009216/0.3165, allocations: 0.6394 MB / 463.2 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.3166, allocations: 67.53 kB / 463.2 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.971e-05/0.3167, allocations: 8 kB / 463.3 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.3169, allocations: 12 kB / 463.3 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.789e-05/0.317, allocations: 35.83 kB / 463.3 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.317, allocations: 11.98 kB / 463.3 MB, free: 4.117 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005466/0.3176, allocations: 435 kB / 463.7 MB, free: 3.695 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3176, allocations: 0 / 463.7 MB, free: 3.695 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008888/0.3185, allocations: 156 kB / 463.9 MB, free: 3.543 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.001289/0.3197, allocations: 1.191 MB / 465.1 MB, free: 2.312 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.3209, allocations: 0.6283 MB / 465.7 MB, free: 1.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3209, allocations: 1.438 kB / 465.7 MB, free: 1.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005152/0.3214, allocations: 357.3 kB / 466.1 MB, free: 1.285 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005472/0.322, allocations: 71.3 kB / 466.1 MB, free: 1.219 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00939/0.3314, allocations: 6.456 MB / 472.6 MB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009117/0.3323, allocations: 1.034 MB / 473.6 MB, free: 9.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002584/0.3325, allocations: 90 kB / 473.7 MB, free: 9.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005516/0.3331, allocations: 423.3 kB / 474.1 MB, free: 8.68 MB / 382.1 MB Notification: Performance of SimCode: time 1.243e-06/0.3331, allocations: 0 / 474.1 MB, free: 8.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05282/0.3859, allocations: 13.3 MB / 487.4 MB, free: 11.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.42, allocations: 4.062 kB / 487.4 MB, free: 11.55 MB / 398.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/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: 14.870904047973454]