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.001336/0.001336, allocations: 110.9 kB / 17.06 MB, free: 6.012 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.001181/0.001181, allocations: 189.4 kB / 18 MB, free: 5.098 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.423/1.423, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 43.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2523, allocations: 49.44 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008337/0.2607, allocations: 5.999 MB / 406.3 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003453/0.2642, allocations: 1.644 MB / 407.9 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006437/0.2649, allocations: 31.88 kB / 407.9 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005954/0.2656, allocations: 249.6 kB / 408.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004864/0.2661, allocations: 217.7 kB / 408.4 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009703/0.2671, allocations: 0.4994 MB / 408.9 MB, free: 156 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001438/0.2685, allocations: 1.399 MB / 410.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009006/0.2694, allocations: 0.6208 MB / 410.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005933/0.27, allocations: 470.1 kB / 411.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005509/0.2706, allocations: 0.4973 MB / 411.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001622/0.2707, allocations: 128 kB / 412 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002405/0.271, allocations: 135.9 kB / 412.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002317/0.2712, allocations: 263.1 kB / 412.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005426/0.2718, allocations: 0.61 MB / 413 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001718/0.2735, allocations: 1.629 MB / 414.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2735, allocations: 0 / 414.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2735, allocations: 0 / 414.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.2736, allocations: 0 / 414.6 MB, free: 10.38 MB / 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.002187/0.2758, allocations: 1.496 MB / 416.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.2758, allocations: 15.83 kB / 416.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002015/0.276, allocations: 181.7 kB / 416.3 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002006/0.2762, allocations: 147.1 kB / 416.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.2774, allocations: 0.7672 MB / 417.2 MB, free: 7.668 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.258e-05/0.2775, allocations: 90.41 kB / 417.3 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.2777, allocations: 116 kB / 417.4 MB, free: 7.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002118/0.2798, allocations: 1.272 MB / 418.7 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.095e-05/0.2799, allocations: 7.938 kB / 418.7 MB, free: 6.016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.264e-05/0.28, allocations: 48 kB / 418.7 MB, free: 5.969 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.113e-05/0.28, allocations: 32 kB / 418.8 MB, free: 5.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001314/0.2813, allocations: 0.6929 MB / 419.5 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00704/0.2884, allocations: 6.79 MB / 426.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000734/0.2891, allocations: 261.3 kB / 426.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003907/0.2896, allocations: 181.6 kB / 426.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001516/0.2897, allocations: 93.08 kB / 426.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.2898, allocations: 38.56 kB / 426.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.893e-06/0.2898, allocations: 0 / 426.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002583/0.2924, allocations: 1.422 MB / 428.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.845e-05/0.2924, allocations: 85.11 kB / 428.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008349/0.2933, allocations: 0.6609 MB / 429 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.2933, allocations: 29.7 kB / 429 MB, free: 11.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005177/0.2938, allocations: 0.6937 MB / 429.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.294, allocations: 131 kB / 429.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/0.2942, allocations: 146.5 kB / 430 MB, free: 10.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002236/0.2944, allocations: 386.8 kB / 430.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000297/0.2947, allocations: 149.9 kB / 430.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006398/0.2953, allocations: 0.5507 MB / 431.1 MB, free: 8.902 MB / 350.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.001297/0.2966, allocations: 0.9597 MB / 432 MB, free: 7.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.2967, allocations: 8 kB / 432 MB, free: 7.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001409/0.2981, allocations: 0.7958 MB / 432.8 MB, free: 6.895 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/0.2981, allocations: 16 kB / 432.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-05/0.2982, allocations: 19.98 kB / 432.9 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002841/0.2984, allocations: 77.69 kB / 432.9 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005729/0.299, allocations: 179.7 kB / 433.1 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003233/0.3023, allocations: 3.332 MB / 436.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004142/0.3027, allocations: 28 kB / 436.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.413e-05/0.3028, allocations: 52.03 kB / 436.5 MB, free: 2.914 MB / 350.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.0005343/0.3033, allocations: 265.5 kB / 436.8 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.3035, allocations: 79.48 kB / 436.9 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.3036, allocations: 70.41 kB / 436.9 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.3036, allocations: 4 kB / 436.9 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.3036, allocations: 4 kB / 436.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.3036, allocations: 3.984 kB / 436.9 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001995/0.3056, allocations: 1.255 MB / 438.2 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.3056, allocations: 0 / 438.2 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003185/0.306, allocations: 68.05 kB / 438.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001839/0.3062, allocations: 53.69 kB / 438.3 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.3062, allocations: 11.98 kB / 438.3 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002536/0.3087, allocations: 3.05 MB / 441.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/0.3088, allocations: 11.95 kB / 441.4 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.3098, allocations: 0.6394 MB / 442 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001482/0.31, allocations: 136.7 kB / 442.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.505e-05/0.31, allocations: 8 kB / 442.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002538/0.3103, allocations: 19.98 kB / 442.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.474e-05/0.3104, allocations: 27.91 kB / 442.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.3104, allocations: 8 kB / 442.2 MB, free: 12.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006054/0.311, allocations: 439 kB / 442.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.265e-06/0.311, allocations: 0 / 442.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001024/0.3121, allocations: 159.9 kB / 442.8 MB, free: 12.2 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.001359/0.3134, allocations: 1.196 MB / 444 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.3146, allocations: 0.6415 MB / 444.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.3147, allocations: 4.125 kB / 444.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005085/0.3152, allocations: 361.2 kB / 445 MB, free: 9.918 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005278/0.3157, allocations: 71.23 kB / 445.1 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00895/0.3247, allocations: 6.478 MB / 451.5 MB, free: 2.867 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007473/0.3254, allocations: 1.027 MB / 452.6 MB, free: 1.812 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002773/0.3257, allocations: 86.03 kB / 452.7 MB, free: 1.727 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004957/0.3262, allocations: 427.3 kB / 453.1 MB, free: 1.312 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3262, allocations: 0 / 453.1 MB, free: 1.312 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04656/0.3728, allocations: 12.67 MB / 465.7 MB, free: 4.801 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.07, allocations: 15.28 kB / 465.8 MB, free: 4.793 MB / 382.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