Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001508/0.001508, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001875/0.001875, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 58.44 kB / 307 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0927/0.09392, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007944/0.1019, allocations: 6.013 MB / 363.6 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003242/0.1052, allocations: 1.726 MB / 365.3 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008044/0.106, allocations: 31.88 kB / 365.4 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006903/0.1068, allocations: 245.6 kB / 365.6 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007871/0.1076, allocations: 221.7 kB / 365.8 MB, free: 5.742 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.1087, allocations: 0.5227 MB / 366.3 MB, free: 5.219 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001585/0.1103, allocations: 1.391 MB / 367.7 MB, free: 3.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008753/0.1112, allocations: 0.6169 MB / 368.3 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005952/0.1118, allocations: 482.1 kB / 368.8 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005381/0.1124, allocations: 0.4934 MB / 369.3 MB, free: 2.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001769/0.1125, allocations: 120 kB / 369.4 MB, free: 2.098 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002415/0.1128, allocations: 148 kB / 369.6 MB, free: 1.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001964/0.113, allocations: 271 kB / 369.8 MB, free: 1.688 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000548/0.1136, allocations: 0.6177 MB / 370.4 MB, free: 1.066 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1573/0.2709, allocations: 1.561 MB / 372 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.2709, allocations: 4.094 kB / 372 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2709, allocations: 0 / 372 MB, free: 12.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.933e-05/0.271, allocations: 1.219 kB / 372 MB, free: 12.93 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.002109/0.2731, allocations: 1.462 MB / 373.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.2732, allocations: 10.34 kB / 373.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000226/0.2734, allocations: 178 kB / 373.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004991/0.2739, allocations: 161.9 kB / 373.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008885/0.2748, allocations: 0.7179 MB / 374.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.02e-05/0.2749, allocations: 91.44 kB / 374.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.275, allocations: 123 kB / 374.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/0.2767, allocations: 1.265 MB / 376 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.193e-05/0.2768, allocations: 7.625 kB / 376 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.357e-05/0.2769, allocations: 53.91 kB / 376.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.331e-05/0.2769, allocations: 31.62 kB / 376.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/0.2781, allocations: 0.697 MB / 376.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00451/0.2826, allocations: 6.814 MB / 383.6 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006089/0.2832, allocations: 268.4 kB / 383.9 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003378/0.2836, allocations: 188.6 kB / 384.1 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001729/0.2838, allocations: 85.27 kB / 384.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.2838, allocations: 34.09 kB / 384.2 MB, free: 5.855 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.995e-06/0.2838, allocations: 0 / 384.2 MB, free: 5.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002127/0.2859, allocations: 1.399 MB / 385.6 MB, free: 4.832 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.467e-05/0.286, allocations: 80.38 kB / 385.7 MB, free: 4.738 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006658/0.2866, allocations: 0.661 MB / 386.3 MB, free: 4.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.2867, allocations: 35.89 kB / 386.3 MB, free: 4.402 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003152/0.287, allocations: 0.6874 MB / 387 MB, free: 3.863 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.671e-05/0.2871, allocations: 127.1 kB / 387.2 MB, free: 3.773 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.2872, allocations: 140.3 kB / 387.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.427e-05/0.2873, allocations: 386.7 kB / 387.7 MB, free: 3.352 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002596/0.2876, allocations: 147.6 kB / 387.8 MB, free: 3.305 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004076/0.288, allocations: 0.5532 MB / 388.4 MB, free: 2.699 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.0008729/0.2889, allocations: 0.9552 MB / 389.3 MB, free: 1.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.2889, allocations: 4.406 kB / 389.3 MB, free: 1.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001222/0.2901, allocations: 0.7911 MB / 390.1 MB, free: 1.551 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/0.2902, allocations: 10.94 kB / 390.1 MB, free: 1.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/0.2902, allocations: 15 kB / 390.1 MB, free: 1.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002811/0.2905, allocations: 86.58 kB / 390.2 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006339/0.2911, allocations: 184 kB / 390.4 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00225/0.2934, allocations: 3.322 MB / 393.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004166/0.2938, allocations: 35.59 kB / 393.8 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.582e-05/0.2939, allocations: 40.45 kB / 393.8 MB, free: 14.27 MB / 318.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.000376/0.2943, allocations: 278.4 kB / 394.1 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.2944, allocations: 77.97 kB / 394.2 MB, free: 14.03 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001106/0.2945, allocations: 71.59 kB / 394.2 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.2945, allocations: 3.062 kB / 394.2 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.2945, allocations: 6.188 kB / 394.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.2945, allocations: 4.453 kB / 394.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00184/0.2964, allocations: 1.248 MB / 395.5 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.2964, allocations: 1.688 kB / 395.5 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003081/0.2967, allocations: 71.62 kB / 395.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000156/0.2969, allocations: 54.33 kB / 395.6 MB, free: 13.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.2969, allocations: 10.78 kB / 395.6 MB, free: 13.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002153/0.2991, allocations: 3.052 MB / 398.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.2991, allocations: 1.75 kB / 398.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.3001, allocations: 0.6427 MB / 399.3 MB, free: 9.773 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.3003, allocations: 139.7 kB / 399.5 MB, free: 9.637 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.796e-05/0.3004, allocations: 11.53 kB / 399.5 MB, free: 9.629 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002581/0.3006, allocations: 17.11 kB / 399.5 MB, free: 9.625 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.836e-05/0.3007, allocations: 23.05 kB / 399.5 MB, free: 9.621 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.3007, allocations: 7.281 kB / 399.5 MB, free: 9.621 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005439/0.3013, allocations: 445.1 kB / 399.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3013, allocations: 0 / 399.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000981/0.3023, allocations: 159.4 kB / 400.1 MB, free: 9.406 MB / 318.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.001153/0.3034, allocations: 1.184 MB / 401.3 MB, free: 8.461 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.3046, allocations: 0.6611 MB / 401.9 MB, free: 8.121 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3046, allocations: 1.438 kB / 402 MB, free: 8.121 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004928/0.3051, allocations: 358.4 kB / 402.3 MB, free: 7.859 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005488/0.3057, allocations: 88.7 kB / 402.4 MB, free: 7.812 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/0.3164, allocations: 6.681 MB / 409.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008849/0.3174, allocations: 1.036 MB / 410.1 MB, free: 2.141 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003718/0.3178, allocations: 87.11 kB / 410.2 MB, free: 2.094 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005022/0.3183, allocations: 425.8 kB / 410.6 MB, free: 1.719 MB / 318.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3183, allocations: 0 / 410.6 MB, free: 1.719 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0432/0.3615, allocations: 12.38 MB / 423 MB, free: 6.426 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.52/13.88, allocations: 14.19 kB / 423 MB, free: 6.418 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches