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.0008211/0.0008211, allocations: 93.22 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009543/0.0009543, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 227.7 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001942/0.0001942, allocations: 8 kB / 307.8 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07764/0.07785, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005213/0.0831, allocations: 5.514 MB / 364.9 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00265/0.08577, allocations: 1.683 MB / 366.6 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000606/0.0864, allocations: 27.88 kB / 366.6 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004877/0.0869, allocations: 182.5 kB / 366.8 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005765/0.08749, allocations: 178.4 kB / 366.9 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008578/0.08835, allocations: 455.5 kB / 367.4 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001196/0.08956, allocations: 1.309 MB / 368.7 MB, free: 3.816 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007093/0.09028, allocations: 0.5452 MB / 369.2 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003985/0.09069, allocations: 362.1 kB / 369.6 MB, free: 2.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003722/0.09107, allocations: 417.3 kB / 370 MB, free: 2.488 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.539e-05/0.09115, allocations: 48 kB / 370 MB, free: 2.441 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001567/0.09132, allocations: 79.92 kB / 370.1 MB, free: 2.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.09146, allocations: 175.1 kB / 370.3 MB, free: 2.191 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003837/0.09185, allocations: 0.5452 MB / 370.8 MB, free: 1.637 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.0929, allocations: 1.42 MB / 372.3 MB, free: 216 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.09291, allocations: 0 / 372.3 MB, free: 216 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.09292, allocations: 4 kB / 372.3 MB, free: 212 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.09294, allocations: 0 / 372.3 MB, free: 212 kB / 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.1361/0.229, allocations: 1.231 MB / 373.5 MB, free: 18.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.2291, allocations: 12.12 kB / 373.5 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001568/0.2292, allocations: 179.7 kB / 373.7 MB, free: 18.39 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003174/0.2295, allocations: 162.8 kB / 373.8 MB, free: 18.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007803/0.2303, allocations: 0.7223 MB / 374.6 MB, free: 18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.909e-05/0.2304, allocations: 95.48 kB / 374.7 MB, free: 18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.2305, allocations: 118.7 kB / 374.8 MB, free: 18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/0.2321, allocations: 1.268 MB / 376 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.135e-05/0.2322, allocations: 15.25 kB / 376.1 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.619e-05/0.2323, allocations: 51.94 kB / 376.1 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.63e-05/0.2323, allocations: 31.03 kB / 376.1 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.2335, allocations: 0.7007 MB / 376.8 MB, free: 17.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003877/0.2374, allocations: 6.83 MB / 383.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005437/0.238, allocations: 279 kB / 383.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002958/0.2383, allocations: 181.3 kB / 384.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001/0.2384, allocations: 85.28 kB / 384.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.2384, allocations: 37.22 kB / 384.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.603e-06/0.2384, allocations: 0 / 384.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001874/0.2403, allocations: 1.419 MB / 385.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.296e-05/0.2403, allocations: 84.27 kB / 385.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005758/0.2409, allocations: 0.6656 MB / 386.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.2409, allocations: 32.11 kB / 386.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002681/0.2412, allocations: 0.6791 MB / 387.1 MB, free: 9.484 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.11e-05/0.2413, allocations: 116.5 kB / 387.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.53e-05/0.2414, allocations: 66.39 kB / 387.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.469e-05/0.2414, allocations: 391.9 kB / 387.7 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002531/0.2417, allocations: 150.3 kB / 387.8 MB, free: 8.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003639/0.2421, allocations: 0.5532 MB / 388.4 MB, free: 8.352 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.0007873/0.2429, allocations: 0.9866 MB / 389.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.2429, allocations: 4.469 kB / 389.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00107/0.244, allocations: 0.7931 MB / 390.2 MB, free: 7.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.244, allocations: 12.75 kB / 390.2 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.244, allocations: 14.25 kB / 390.2 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001974/0.2442, allocations: 86.94 kB / 390.3 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004826/0.2447, allocations: 182.6 kB / 390.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/0.2462, allocations: 2.989 MB / 393.4 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.2466, allocations: 32.7 kB / 393.5 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.354e-05/0.2466, allocations: 44.48 kB / 393.5 MB, free: 4.055 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 sytem: 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.000266/0.2469, allocations: 280 kB / 393.8 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.062e-05/0.247, allocations: 74.45 kB / 393.9 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.2471, allocations: 75.3 kB / 393.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.2471, allocations: 3.125 kB / 393.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.2471, allocations: 2.781 kB / 393.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.2471, allocations: 1.688 kB / 393.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.2486, allocations: 1.261 MB / 395.2 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2486, allocations: 6.078 kB / 395.2 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002788/0.2489, allocations: 61.94 kB / 395.3 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001271/0.249, allocations: 60.59 kB / 395.3 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.2491, allocations: 11.92 kB / 395.3 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/0.2503, allocations: 2.781 MB / 398.1 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2503, allocations: 2.031 kB / 398.1 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007889/0.2511, allocations: 0.6438 MB / 398.8 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.578e-05/0.2512, allocations: 136.2 kB / 398.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.95e-05/0.2513, allocations: 12.78 kB / 398.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/0.2515, allocations: 18.33 kB / 398.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.86e-05/0.2516, allocations: 28.66 kB / 399 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.2516, allocations: 10.5 kB / 399 MB, free: 15.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004746/0.2521, allocations: 436.7 kB / 399.4 MB, free: 15.42 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2521, allocations: 4 kB / 399.4 MB, free: 15.42 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007529/0.2529, allocations: 159.4 kB / 399.6 MB, free: 15.4 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.001075/0.2539, allocations: 1.2 MB / 400.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009275/0.2549, allocations: 0.6584 MB / 401.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.2549, allocations: 5.469 kB / 401.4 MB, free: 14.06 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004301/0.2553, allocations: 366.3 kB / 401.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005839/0.2559, allocations: 73.91 kB / 401.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007916/0.2639, allocations: 7.288 MB / 409.1 MB, free: 8.074 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005026/0.2644, allocations: 1.034 MB / 410.2 MB, free: 7.227 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002592/0.2646, allocations: 81.12 kB / 410.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003934/0.265, allocations: 429.8 kB / 410.7 MB, free: 6.805 MB / 318.1 MB Notification: Performance of SimCode: time 6.41e-07/0.265, allocations: 0 / 410.7 MB, free: 6.805 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02305/0.2881, allocations: 11.83 MB / 422.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002163/0.2883, allocations: 232.4 kB / 422.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.899/2.188, allocations: 4 kB / 422.7 MB, free: 11.7 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