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: 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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00104/0.00104, allocations: 96.94 kB / 17.01 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 193.4 kB / 17.91 MB, free: 5.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.555/1.555, allocations: 227.7 MB / 246.4 MB, free: 11.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003075/0.0003081, allocations: 8 kB / 307.1 MB, free: 1.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1473, allocations: 51.53 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006224/0.1535, allocations: 5.173 MB / 363.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00365/0.1572, allocations: 1.64 MB / 365.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007743/0.158, allocations: 31.81 kB / 365.5 MB, free: 6.773 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005311/0.1586, allocations: 174.5 kB / 365.6 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004949/0.1591, allocations: 174.4 kB / 365.8 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000956/0.1601, allocations: 351.5 kB / 366.2 MB, free: 6.086 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001225/0.1613, allocations: 1.231 MB / 367.4 MB, free: 4.852 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007127/0.162, allocations: 461.9 kB / 367.8 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005174/0.1625, allocations: 350.4 kB / 368.2 MB, free: 4.039 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004219/0.163, allocations: 397.7 kB / 368.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.809e-05/0.1631, allocations: 48 kB / 368.6 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001924/0.1633, allocations: 71.92 kB / 368.7 MB, free: 3.531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.1634, allocations: 171.2 kB / 368.9 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001945/0.1636, allocations: 241 kB / 369.1 MB, free: 3.121 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.1647, allocations: 1.169 MB / 370.3 MB, free: 1.949 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1647, allocations: 0 / 370.3 MB, free: 1.949 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1647, allocations: 0 / 370.3 MB, free: 1.949 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.1647, allocations: 0 / 370.3 MB, free: 1.949 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.00201/0.1667, allocations: 1.252 MB / 371.5 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.526e-05/0.1668, allocations: 12.03 kB / 371.5 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004218/0.1672, allocations: 170.2 kB / 371.7 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.218/0.3853, allocations: 0.6862 MB / 372.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.3855, allocations: 92.06 kB / 372.5 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002311/0.3857, allocations: 119.2 kB / 372.6 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002923/0.3886, allocations: 1.256 MB / 373.8 MB, free: 18.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.062e-05/0.3887, allocations: 15.31 kB / 373.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001608/0.3889, allocations: 56.33 kB / 373.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.656e-05/0.389, allocations: 32.89 kB / 373.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002873/0.3918, allocations: 0.6879 MB / 374.6 MB, free: 17.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0106/0.4025, allocations: 6.823 MB / 381.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.4037, allocations: 274.2 kB / 381.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005867/0.4043, allocations: 185.7 kB / 381.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002129/0.4045, allocations: 89.38 kB / 382 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.415e-05/0.4046, allocations: 41.38 kB / 382 MB, free: 12.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 3.677e-06/0.4046, allocations: 0 / 382 MB, free: 12.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.004064/0.4087, allocations: 1.405 MB / 383.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.367e-05/0.4088, allocations: 84.67 kB / 383.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001446/0.4102, allocations: 0.66 MB / 384.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.58e-05/0.4103, allocations: 31.02 kB / 384.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006329/0.4109, allocations: 0.6807 MB / 384.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.4111, allocations: 118.9 kB / 385 MB, free: 9.934 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.264e-05/0.4111, allocations: 14.44 kB / 385 MB, free: 9.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.4113, allocations: 384.9 kB / 385.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004634/0.4118, allocations: 148.7 kB / 385.5 MB, free: 9.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007432/0.4125, allocations: 0.5538 MB / 386.1 MB, free: 8.918 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.0009297/0.4135, allocations: 458.2 kB / 386.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/0.4135, allocations: 4.375 kB / 386.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002161/0.4157, allocations: 0.7942 MB / 387.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.199e-05/0.4157, allocations: 10.75 kB / 387.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.04e-05/0.4158, allocations: 15.52 kB / 387.4 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004071/0.4162, allocations: 84.3 kB / 387.4 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009178/0.4171, allocations: 187.5 kB / 387.6 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002933/0.4201, allocations: 2.977 MB / 390.6 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008291/0.4209, allocations: 35.02 kB / 390.6 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.565e-05/0.421, allocations: 51.56 kB / 390.7 MB, free: 5.258 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 (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.000729/0.4218, allocations: 275.8 kB / 391 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/0.422, allocations: 75.53 kB / 391 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001901/0.4222, allocations: 78.41 kB / 391.1 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.4222, allocations: 4.016 kB / 391.1 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.821e-05/0.4222, allocations: 2.156 kB / 391.1 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.4223, allocations: 1.172 kB / 391.1 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00342/0.4257, allocations: 1.255 MB / 392.4 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/0.4257, allocations: 0.9062 kB / 392.4 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004996/0.4262, allocations: 70.34 kB / 392.4 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000247/0.4265, allocations: 56.91 kB / 392.5 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.707e-05/0.4265, allocations: 8.297 kB / 392.5 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002389/0.4289, allocations: 2.781 MB / 395.3 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-05/0.429, allocations: 6.656 kB / 395.3 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.4305, allocations: 0.6382 MB / 395.9 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002107/0.4307, allocations: 136.8 kB / 396.1 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.12e-05/0.4308, allocations: 8.391 kB / 396.1 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004356/0.4313, allocations: 22.77 kB / 396.1 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.4314, allocations: 26.91 kB / 396.1 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-05/0.4315, allocations: 12.12 kB / 396.1 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001074/0.4326, allocations: 428.7 kB / 396.6 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.62e-07/0.4326, allocations: 0 / 396.6 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.002001/0.4346, allocations: 159.6 kB / 396.7 MB, free: 0.6094 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 (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.0002926/0.4349, allocations: 110.7 kB / 396.8 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002182/0.4371, allocations: 0.6533 MB / 397.5 MB, free: 140 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.4371, allocations: 3.938 kB / 397.5 MB, free: 136 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008059/0.4379, allocations: 366.5 kB / 397.8 MB, free: 15.86 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.439, allocations: 82.31 kB / 397.9 MB, free: 15.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006277/0.4453, allocations: 2.323 MB / 400.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001008/0.4463, allocations: 1.04 MB / 401.3 MB, free: 13.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004359/0.4468, allocations: 87.44 kB / 401.4 MB, free: 13.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.4469, allocations: 56.94 kB / 401.4 MB, free: 13.53 MB / 318.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4469, allocations: 0 / 401.4 MB, free: 13.53 MB / 318.1 MB Notification: Performance of Templates: time 0.01694/0.4639, allocations: 5.032 MB / 406.4 MB, free: 11.17 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches