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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 107.6 kB / 16.51 MB, free: 6.715 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.001137/0.001137, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009881/0.0009881, allocations: 51.3 kB / 300.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09881/0.09981, allocations: 49.44 MB / 349.5 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007318/0.1072, allocations: 5.964 MB / 355.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003848/0.1111, allocations: 1.624 MB / 357.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001254/0.1123, allocations: 27.88 kB / 357.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009804/0.1134, allocations: 186.5 kB / 357.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009243/0.1144, allocations: 174.5 kB / 357.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.1155, allocations: 443.6 kB / 357.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.1168, allocations: 1.298 MB / 359.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007411/0.1175, allocations: 0.553 MB / 359.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004378/0.118, allocations: 430.1 kB / 360.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004155/0.1184, allocations: 477.2 kB / 360.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.1185, allocations: 72 kB / 360.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001932/0.1187, allocations: 91.98 kB / 360.8 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000156/0.1189, allocations: 219 kB / 361 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004451/0.1193, allocations: 0.5592 MB / 361.6 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.1204, allocations: 1.452 MB / 363 MB, free: 7.062 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1205, allocations: 0 / 363 MB, free: 7.062 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.1205, allocations: 4 kB / 363 MB, free: 7.059 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.297e-05/0.1205, allocations: 0 / 363 MB, free: 7.059 MB / 302.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.1225, allocations: 1.458 MB / 364.5 MB, free: 5.547 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.1226, allocations: 12.03 kB / 364.5 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000181/0.1228, allocations: 181.6 kB / 364.7 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.123, allocations: 150.2 kB / 364.8 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009623/0.1239, allocations: 0.7121 MB / 365.5 MB, free: 4.445 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.45e-05/0.124, allocations: 86.41 kB / 365.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.1241, allocations: 120 kB / 365.7 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001852/0.126, allocations: 1.268 MB / 367 MB, free: 2.805 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.225e-05/0.126, allocations: 3.938 kB / 367 MB, free: 2.801 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.886e-05/0.1261, allocations: 60 kB / 367.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.675e-05/0.1262, allocations: 32 kB / 367.1 MB, free: 2.711 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001245/0.1274, allocations: 0.6812 MB / 367.8 MB, free: 2.027 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1852/0.3127, allocations: 6.816 MB / 374.6 MB, free: 20.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008467/0.3136, allocations: 267.2 kB / 374.9 MB, free: 20.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004288/0.314, allocations: 188.5 kB / 375 MB, free: 20 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002106/0.3143, allocations: 86.36 kB / 375.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.3143, allocations: 40.22 kB / 375.2 MB, free: 19.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.986e-06/0.3143, allocations: 3.469 kB / 375.2 MB, free: 19.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002768/0.3171, allocations: 1.389 MB / 376.6 MB, free: 19.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.3171, allocations: 85.5 kB / 376.6 MB, free: 18.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001042/0.3182, allocations: 0.6577 MB / 377.3 MB, free: 18.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.3182, allocations: 33.06 kB / 377.3 MB, free: 18.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005373/0.3188, allocations: 0.6813 MB / 378 MB, free: 18.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.3189, allocations: 119 kB / 378.1 MB, free: 18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000215/0.3191, allocations: 140.8 kB / 378.3 MB, free: 17.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002095/0.3193, allocations: 387.8 kB / 378.6 MB, free: 17.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003248/0.3197, allocations: 148.1 kB / 378.8 MB, free: 17.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005886/0.3203, allocations: 0.5559 MB / 379.3 MB, free: 16.92 MB / 302.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.001034/0.3213, allocations: 0.9663 MB / 380.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.3213, allocations: 4.125 kB / 380.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001346/0.3227, allocations: 0.7875 MB / 381.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.3227, allocations: 11.59 kB / 381.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.126e-05/0.3227, allocations: 14.14 kB / 381.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002813/0.323, allocations: 80.05 kB / 381.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005777/0.3236, allocations: 184.7 kB / 381.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002053/0.3257, allocations: 2.981 MB / 384.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004301/0.3261, allocations: 30.47 kB / 384.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.077e-05/0.3262, allocations: 50.86 kB / 384.4 MB, free: 12.64 MB / 302.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.0004691/0.3267, allocations: 272.1 kB / 384.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.3268, allocations: 77 kB / 384.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.3269, allocations: 73.94 kB / 384.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.327, allocations: 3.812 kB / 384.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.481e-05/0.327, allocations: 1.469 kB / 384.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.381e-06/0.327, allocations: 1.469 kB / 384.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002128/0.3291, allocations: 1.251 MB / 386.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.3291, allocations: 1.219 kB / 386.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000334/0.3295, allocations: 69.11 kB / 386.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001571/0.3296, allocations: 56.56 kB / 386.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.3297, allocations: 9.828 kB / 386.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001589/0.3313, allocations: 2.788 MB / 389 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3313, allocations: 0 / 389 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008721/0.3322, allocations: 0.6333 MB / 389.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.796e-05/0.3323, allocations: 138.4 kB / 389.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.583e-05/0.3323, allocations: 7.281 kB / 389.8 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002645/0.3326, allocations: 17.81 kB / 389.8 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.423e-05/0.3327, allocations: 31.97 kB / 389.9 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.3327, allocations: 10.52 kB / 389.9 MB, free: 8.215 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006113/0.3333, allocations: 434.4 kB / 390.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3334, allocations: 0 / 390.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001028/0.3344, allocations: 158.2 kB / 390.5 MB, free: 8.008 MB / 302.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.001134/0.3355, allocations: 1.194 MB / 391.6 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.3367, allocations: 0.6422 MB / 392.3 MB, free: 6.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3367, allocations: 0 / 392.3 MB, free: 6.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004614/0.3372, allocations: 369.7 kB / 392.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005673/0.3378, allocations: 71.75 kB / 392.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009429/0.3472, allocations: 7.126 MB / 399.8 MB, free: 1.254 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007653/0.348, allocations: 1.04 MB / 400.9 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003705/0.3484, allocations: 81.66 kB / 401 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004236/0.3488, allocations: 422.2 kB / 401.4 MB, free: 184 kB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3488, allocations: 0 / 401.4 MB, free: 184 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/0.3769, allocations: 11.95 MB / 413.3 MB, free: 7.523 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/0.3772, allocations: 224 kB / 413.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.231/2.608, allocations: 1.312 kB / 413.6 MB, free: 7.27 MB / 318.1 MB (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 --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) 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) Reference file matches