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.001015/0.001015, allocations: 107.1 kB / 17.32 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001048/0.001048, allocations: 205.8 kB / 18.26 MB, free: 4.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 55.88 kB / 306.4 MB, free: 0.9336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1089, allocations: 50.54 MB / 357 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007759/0.1167, allocations: 5.985 MB / 363 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004144/0.1209, allocations: 1.698 MB / 364.7 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006826/0.1216, allocations: 31.88 kB / 364.7 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005469/0.1223, allocations: 186.5 kB / 364.9 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004736/0.1227, allocations: 170.5 kB / 365 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.1238, allocations: 467.6 kB / 365.5 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001276/0.1251, allocations: 1.395 MB / 366.9 MB, free: 4.434 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008014/0.1259, allocations: 0.6247 MB / 367.5 MB, free: 3.789 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005551/0.1264, allocations: 482.1 kB / 368 MB, free: 3.316 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004957/0.1269, allocations: 0.4895 MB / 368.5 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001414/0.1271, allocations: 124 kB / 368.6 MB, free: 2.703 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000233/0.1273, allocations: 140 kB / 368.7 MB, free: 2.566 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001949/0.1275, allocations: 279 kB / 369 MB, free: 2.293 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004726/0.128, allocations: 0.61 MB / 369.6 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001252/0.1293, allocations: 1.573 MB / 371.2 MB, free: 104 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1293, allocations: 0 / 371.2 MB, free: 104 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1293, allocations: 4 kB / 371.2 MB, free: 100 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.621e-05/0.1293, allocations: 0 / 371.2 MB, free: 100 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.238/0.3674, allocations: 1.448 MB / 372.6 MB, free: 19.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.3674, allocations: 9.219 kB / 372.7 MB, free: 19.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003879/0.3678, allocations: 166.7 kB / 372.8 MB, free: 19.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.3689, allocations: 0.7206 MB / 373.5 MB, free: 19.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-05/0.369, allocations: 88.97 kB / 373.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001575/0.3691, allocations: 117.9 kB / 373.7 MB, free: 19.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001956/0.3711, allocations: 1.266 MB / 375 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.349e-05/0.3712, allocations: 11.06 kB / 375 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.397e-05/0.3713, allocations: 61.31 kB / 375.1 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.85e-05/0.3713, allocations: 31.94 kB / 375.1 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.3727, allocations: 0.6884 MB / 375.8 MB, free: 18.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005809/0.3785, allocations: 6.818 MB / 382.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006882/0.3792, allocations: 263 kB / 382.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003531/0.3796, allocations: 187.3 kB / 383.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001868/0.3798, allocations: 83.88 kB / 383.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.3798, allocations: 41.7 kB / 383.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.144e-06/0.3798, allocations: 0 / 383.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002698/0.3825, allocations: 1.399 MB / 384.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.3826, allocations: 79.77 kB / 384.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008334/0.3834, allocations: 0.6591 MB / 385.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.3834, allocations: 30.83 kB / 385.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004126/0.3839, allocations: 0.6854 MB / 386 MB, free: 10.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.778e-05/0.3839, allocations: 111.7 kB / 386.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.3841, allocations: 144.5 kB / 386.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.3842, allocations: 396.5 kB / 386.7 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.3845, allocations: 143.4 kB / 386.8 MB, free: 9.809 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004312/0.385, allocations: 0.5488 MB / 387.4 MB, free: 9.203 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.0009503/0.3859, allocations: 0.972 MB / 388.3 MB, free: 8.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.3859, allocations: 3.969 kB / 388.3 MB, free: 8.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001301/0.3872, allocations: 0.7923 MB / 389.1 MB, free: 7.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.3873, allocations: 10.8 kB / 389.1 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.149e-05/0.3873, allocations: 20.81 kB / 389.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002483/0.3876, allocations: 78.23 kB / 389.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005572/0.3881, allocations: 185.8 kB / 389.4 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001942/0.3901, allocations: 3.335 MB / 392.7 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004634/0.3906, allocations: 30.91 kB / 392.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.859e-05/0.3906, allocations: 40.39 kB / 392.8 MB, free: 4.586 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 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.0004004/0.391, allocations: 272.2 kB / 393.1 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.3912, allocations: 74.44 kB / 393.2 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001194/0.3913, allocations: 82.73 kB / 393.2 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.3913, allocations: 3.562 kB / 393.2 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.3913, allocations: 2.344 kB / 393.2 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.3913, allocations: 3.516 kB / 393.2 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001903/0.3932, allocations: 1.241 MB / 394.5 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.3932, allocations: 5.328 kB / 394.5 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003223/0.3936, allocations: 68.58 kB / 394.6 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000153/0.3937, allocations: 52.67 kB / 394.6 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.386e-05/0.3938, allocations: 16.14 kB / 394.6 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001491/0.3953, allocations: 3.055 MB / 397.7 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3953, allocations: 2.406 kB / 397.7 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008135/0.3961, allocations: 0.6325 MB / 398.3 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002822/0.3964, allocations: 140.3 kB / 398.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.577e-05/0.3965, allocations: 8.438 kB / 398.5 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002614/0.3967, allocations: 20.05 kB / 398.5 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.623e-05/0.3968, allocations: 26.09 kB / 398.5 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.3968, allocations: 12.97 kB / 398.5 MB, free: 15.87 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006514/0.3975, allocations: 435.7 kB / 398.9 MB, free: 15.68 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3975, allocations: 0 / 398.9 MB, free: 15.68 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001336/0.3988, allocations: 159.5 kB / 399.1 MB, free: 15.66 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.0002222/0.3991, allocations: 112 kB / 399.2 MB, free: 15.56 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001629/0.4007, allocations: 0.6573 MB / 399.9 MB, free: 15.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4007, allocations: 4.484 kB / 399.9 MB, free: 15.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000717/0.4015, allocations: 367.1 kB / 400.2 MB, free: 14.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006965/0.4022, allocations: 77.73 kB / 400.3 MB, free: 14.87 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004631/0.4068, allocations: 2.334 MB / 402.6 MB, free: 13.24 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006724/0.4075, allocations: 1.039 MB / 403.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003198/0.4078, allocations: 85.89 kB / 403.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.408, allocations: 55.3 kB / 403.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of SimCode: time 6.12e-07/0.408, allocations: 1.375 kB / 403.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of Templates: time 0.01204/0.42, allocations: 5.391 MB / 409.2 MB, free: 9.488 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