Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001767/0.001767, allocations: 177.9 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.661/1.661, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007671/0.0007671, allocations: 97.03 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003128/0.0003128, allocations: 15.98 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2537, allocations: 47.57 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005081/0.2588, allocations: 5.124 MB / 379.7 MB, free: 41.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003062/0.2619, allocations: 1.599 MB / 381.3 MB, free: 40.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006686/0.2626, allocations: 31.72 kB / 381.3 MB, free: 40.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003406/0.263, allocations: 168.9 kB / 381.5 MB, free: 39.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003945/0.2634, allocations: 172 kB / 381.6 MB, free: 39.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007954/0.2642, allocations: 340.6 kB / 382 MB, free: 39.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001161/0.2654, allocations: 1.224 MB / 383.2 MB, free: 38.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000682/0.2661, allocations: 453.7 kB / 383.6 MB, free: 38.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005009/0.2666, allocations: 350.3 kB / 384 MB, free: 38.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003905/0.267, allocations: 396.7 kB / 384.4 MB, free: 37.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.2671, allocations: 49.31 kB / 384.4 MB, free: 37.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002006/0.2673, allocations: 72.02 kB / 384.5 MB, free: 37.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.2674, allocations: 173.6 kB / 384.7 MB, free: 37.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001939/0.2676, allocations: 240.3 kB / 384.9 MB, free: 37.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000829/0.2685, allocations: 1.157 MB / 386.1 MB, free: 36.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.2685, allocations: 3.938 kB / 386.1 MB, free: 36.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2685, allocations: 5.688 kB / 386.1 MB, free: 36.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.8e-05/0.2685, allocations: 0 / 386.1 MB, free: 36.75 MB / 298.7 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.001712/0.2702, allocations: 1.247 MB / 387.3 MB, free: 35.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.2703, allocations: 9.25 kB / 387.3 MB, free: 35.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002125/0.2705, allocations: 144 kB / 387.5 MB, free: 35.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009081/0.2714, allocations: 0.6867 MB / 388.1 MB, free: 35.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.136e-05/0.2715, allocations: 94.36 kB / 388.2 MB, free: 35.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/0.2716, allocations: 127.8 kB / 388.4 MB, free: 34.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.2732, allocations: 1.26 MB / 389.6 MB, free: 33.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/0.2732, allocations: 7.938 kB / 389.6 MB, free: 33.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-05/0.2733, allocations: 52 kB / 389.7 MB, free: 33.4 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.072e-05/0.2734, allocations: 32 kB / 389.7 MB, free: 33.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.2744, allocations: 0.6851 MB / 390.4 MB, free: 32.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004364/0.2788, allocations: 6.818 MB / 397.2 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005918/0.2794, allocations: 280.6 kB / 397.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002992/0.2797, allocations: 181.7 kB / 397.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001595/0.2799, allocations: 85.11 kB / 397.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.2799, allocations: 38.55 kB / 397.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 3.506e-06/0.2799, allocations: 0 / 397.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.002093/0.282, allocations: 1.413 MB / 399.2 MB, free: 23.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.2821, allocations: 85.05 kB / 399.3 MB, free: 23.28 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005806/0.2827, allocations: 0.649 MB / 399.9 MB, free: 22.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.2827, allocations: 33.7 kB / 400 MB, free: 22.58 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002692/0.283, allocations: 0.6837 MB / 400.6 MB, free: 21.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.951e-05/0.2831, allocations: 114.4 kB / 400.8 MB, free: 21.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.085e-05/0.2831, allocations: 16 kB / 400.8 MB, free: 21.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.865e-05/0.2832, allocations: 382.8 kB / 401.1 MB, free: 21.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/0.2834, allocations: 149.9 kB / 401.3 MB, free: 21.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003773/0.2838, allocations: 0.5585 MB / 401.9 MB, free: 20.48 MB / 298.7 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.0005277/0.2844, allocations: 445.2 kB / 402.3 MB, free: 20.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.2844, allocations: 8 kB / 402.3 MB, free: 20 MB / 298.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001054/0.2854, allocations: 0.7846 MB / 403.1 MB, free: 19.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.2855, allocations: 12.94 kB / 403.1 MB, free: 19.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.2855, allocations: 16 kB / 403.1 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000228/0.2857, allocations: 85.62 kB / 403.2 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004833/0.2862, allocations: 184 kB / 403.4 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001682/0.2879, allocations: 2.986 MB / 406.4 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003606/0.2883, allocations: 36.06 kB / 406.4 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.849e-05/0.2883, allocations: 44 kB / 406.4 MB, free: 15.57 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003443/0.2887, allocations: 269.5 kB / 406.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.942e-05/0.2888, allocations: 79 kB / 406.8 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.928e-05/0.2889, allocations: 70.41 kB / 406.8 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.2889, allocations: 4 kB / 406.8 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.2889, allocations: 7.953 kB / 406.9 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.2889, allocations: 7.984 kB / 406.9 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/0.2903, allocations: 1.247 MB / 408.1 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.2904, allocations: 4 kB / 408.1 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003012/0.2907, allocations: 67.95 kB / 408.2 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001402/0.2908, allocations: 53.62 kB / 408.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/0.2908, allocations: 16.08 kB / 408.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.2922, allocations: 2.78 MB / 411 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.2923, allocations: 3.938 kB / 411 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007471/0.293, allocations: 0.6564 MB / 411.7 MB, free: 9.938 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.735e-05/0.2931, allocations: 136.2 kB / 411.8 MB, free: 9.785 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.51e-05/0.2932, allocations: 8 kB / 411.8 MB, free: 9.777 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002515/0.2934, allocations: 19.98 kB / 411.8 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.472e-05/0.2935, allocations: 27.92 kB / 411.9 MB, free: 9.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.2935, allocations: 11.98 kB / 411.9 MB, free: 9.719 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003907/0.2939, allocations: 431 kB / 412.3 MB, free: 9.301 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2939, allocations: 0 / 412.3 MB, free: 9.301 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008099/0.2947, allocations: 156 kB / 412.5 MB, free: 9.148 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001191/0.2949, allocations: 111.2 kB / 412.6 MB, free: 9.027 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009437/0.2958, allocations: 0.6523 MB / 413.2 MB, free: 8.352 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2958, allocations: 448 / 413.2 MB, free: 8.352 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003707/0.2962, allocations: 369.2 kB / 413.6 MB, free: 7.965 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005093/0.2967, allocations: 79.55 kB / 413.7 MB, free: 7.891 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002561/0.2993, allocations: 2.374 MB / 416 MB, free: 5.473 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.2997, allocations: 1.034 MB / 417.1 MB, free: 4.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.2999, allocations: 63.41 kB / 417.1 MB, free: 4.348 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.2999, allocations: 0 / 417.1 MB, free: 4.348 MB / 298.7 MB Notification: Performance of Templates: time 0.02516/0.325, allocations: 19.34 MB / 436.5 MB, free: 0.9883 MB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches