Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 114.5 kB / 17.73 MB, free: 5.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 187 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.313/1.313, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001626, allocations: 51.92 kB / 328 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08772/0.08935, allocations: 46.61 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.1933/0.2827, allocations: 5.957 MB / 380.6 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0028/0.2856, allocations: 1.695 MB / 382.3 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004943/0.2861, allocations: 33.69 kB / 382.3 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004627/0.2866, allocations: 248.9 kB / 382.6 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004419/0.2871, allocations: 215.7 kB / 382.8 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.2881, allocations: 0.5016 MB / 383.3 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001534/0.2896, allocations: 1.392 MB / 384.7 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008144/0.2905, allocations: 0.6277 MB / 385.3 MB, free: 7.789 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006648/0.2911, allocations: 477.4 kB / 385.8 MB, free: 7.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004836/0.2916, allocations: 0.4896 MB / 386.3 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000154/0.2918, allocations: 122.5 kB / 386.4 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002463/0.292, allocations: 135.1 kB / 386.5 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001741/0.2922, allocations: 265.4 kB / 386.8 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004233/0.2927, allocations: 0.6108 MB / 387.4 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001759/0.2944, allocations: 1.631 MB / 389 MB, free: 5.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.2944, allocations: 0 / 389 MB, free: 5.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2944, allocations: 0 / 389 MB, free: 5.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.637e-05/0.2945, allocations: 1.438 kB / 389 MB, free: 5.988 MB / 318.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.002022/0.2965, allocations: 1.494 MB / 390.5 MB, free: 4.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.2966, allocations: 9.5 kB / 390.5 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000176/0.2967, allocations: 177.2 kB / 390.7 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000191/0.2969, allocations: 149.7 kB / 390.8 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.298, allocations: 0.7683 MB / 391.6 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.35e-05/0.2981, allocations: 89.69 kB / 391.7 MB, free: 4.258 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001433/0.2982, allocations: 119.2 kB / 391.8 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001809/0.3001, allocations: 1.26 MB / 393.1 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.595e-05/0.3001, allocations: 7.188 kB / 393.1 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-05/0.3002, allocations: 54.91 kB / 393.1 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.021e-05/0.3002, allocations: 32.16 kB / 393.2 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.3014, allocations: 0.6878 MB / 393.9 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006125/0.3076, allocations: 6.793 MB / 400.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00075/0.3084, allocations: 271.9 kB / 400.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003968/0.3088, allocations: 186.4 kB / 401.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001607/0.3089, allocations: 87.17 kB / 401.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.309, allocations: 33.27 kB / 401.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.274e-06/0.309, allocations: 3.938 kB / 401.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002707/0.3117, allocations: 1.43 MB / 402.7 MB, free: 12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.53e-05/0.3118, allocations: 84.41 kB / 402.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008263/0.3126, allocations: 0.6598 MB / 403.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/0.3127, allocations: 32.02 kB / 403.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005042/0.3132, allocations: 0.7 MB / 404.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.3133, allocations: 126.5 kB / 404.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/0.3135, allocations: 149.2 kB / 404.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002306/0.3137, allocations: 383.5 kB / 404.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002943/0.314, allocations: 152.3 kB / 404.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006368/0.3147, allocations: 0.5479 MB / 405.5 MB, free: 9.832 MB / 334.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.001257/0.316, allocations: 0.9533 MB / 406.4 MB, free: 8.895 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/0.316, allocations: 4.125 kB / 406.4 MB, free: 8.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00129/0.3173, allocations: 0.7946 MB / 407.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.3173, allocations: 10.97 kB / 407.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/0.3173, allocations: 14.91 kB / 407.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002449/0.3176, allocations: 86.66 kB / 407.3 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005243/0.3181, allocations: 180.8 kB / 407.5 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003077/0.3212, allocations: 3.327 MB / 410.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004278/0.3217, allocations: 37.73 kB / 410.9 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.137e-05/0.3217, allocations: 39.81 kB / 410.9 MB, free: 5.156 MB / 334.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.0004882/0.3222, allocations: 281.4 kB / 411.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.3223, allocations: 78.52 kB / 411.3 MB, free: 4.887 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.3225, allocations: 67.3 kB / 411.3 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.3225, allocations: 3.469 kB / 411.3 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.3225, allocations: 1.375 kB / 411.3 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.3225, allocations: 5.234 kB / 411.3 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001997/0.3245, allocations: 1.247 MB / 412.6 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3245, allocations: 0.9688 kB / 412.6 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003112/0.3248, allocations: 69.52 kB / 412.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001734/0.325, allocations: 63.73 kB / 412.7 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.3251, allocations: 7.375 kB / 412.7 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002518/0.3276, allocations: 3.059 MB / 415.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.3276, allocations: 2.281 kB / 415.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.3286, allocations: 0.632 MB / 416.4 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001535/0.3288, allocations: 147.1 kB / 416.6 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.884e-05/0.3289, allocations: 7.719 kB / 416.6 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002584/0.3291, allocations: 20.08 kB / 416.6 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.06e-05/0.3292, allocations: 31.47 kB / 416.6 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.3292, allocations: 6.344 kB / 416.6 MB, free: 64 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006064/0.3299, allocations: 440.8 kB / 417.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3299, allocations: 0 / 417.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001027/0.3309, allocations: 155.3 kB / 417.2 MB, free: 15.8 MB / 350.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.001309/0.3322, allocations: 1.2 MB / 418.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001164/0.3334, allocations: 0.6532 MB / 419.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3334, allocations: 3.062 kB / 419.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005017/0.3339, allocations: 362.5 kB / 419.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005611/0.3345, allocations: 80.8 kB / 419.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009073/0.3436, allocations: 6.433 MB / 425.9 MB, free: 9.176 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007996/0.3444, allocations: 1.033 MB / 427 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002882/0.3447, allocations: 83.44 kB / 427 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005022/0.3452, allocations: 422.9 kB / 427.5 MB, free: 7.91 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3452, allocations: 3.938 kB / 427.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04473/0.39, allocations: 12.71 MB / 440.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/10.79, allocations: 7.938 kB / 440.2 MB, free: 11.34 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches