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.001623/0.001623, allocations: 121 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002029/0.002029, allocations: 212.5 kB / 19.36 MB, free: 3.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 60.66 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1028, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008347/0.1112, allocations: 6.017 MB / 364.9 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003666/0.1149, allocations: 1.726 MB / 366.7 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000505/0.1154, allocations: 35.81 kB / 366.7 MB, free: 5.551 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005118/0.116, allocations: 245.6 kB / 366.9 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004375/0.1164, allocations: 225.7 kB / 367.1 MB, free: 5.086 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009642/0.1174, allocations: 0.5188 MB / 367.7 MB, free: 4.566 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001243/0.1186, allocations: 1.399 MB / 369.1 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008255/0.1195, allocations: 0.613 MB / 369.7 MB, free: 2.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005705/0.12, allocations: 490 kB / 370.2 MB, free: 2.047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004683/0.1205, allocations: 0.4934 MB / 370.6 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000145/0.1207, allocations: 124 kB / 370.8 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002099/0.1209, allocations: 140 kB / 370.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000187/0.1211, allocations: 267 kB / 371.2 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004619/0.1216, allocations: 0.6177 MB / 371.8 MB, free: 420 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1684/0.29, allocations: 1.596 MB / 373.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.29, allocations: 0 / 373.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2901, allocations: 3.828 kB / 373.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.096e-05/0.2901, allocations: 0 / 373.4 MB, free: 13.45 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.002224/0.2923, allocations: 1.465 MB / 374.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.2924, allocations: 10.5 kB / 374.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003864/0.2928, allocations: 161.7 kB / 375 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/0.294, allocations: 0.7611 MB / 375.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.857e-05/0.2941, allocations: 86.78 kB / 375.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.2942, allocations: 124 kB / 376 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001914/0.2962, allocations: 1.267 MB / 377.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.488e-05/0.2962, allocations: 8.875 kB / 377.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-05/0.2963, allocations: 52.56 kB / 377.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.829e-05/0.2963, allocations: 35.22 kB / 377.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.2976, allocations: 0.6969 MB / 378 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004697/0.3023, allocations: 6.766 MB / 384.8 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006782/0.303, allocations: 268.9 kB / 385.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003351/0.3033, allocations: 182.5 kB / 385.2 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001021/0.3034, allocations: 83.64 kB / 385.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.3035, allocations: 43.16 kB / 385.4 MB, free: 6.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.633e-06/0.3035, allocations: 0 / 385.4 MB, free: 6.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002079/0.3056, allocations: 1.397 MB / 386.8 MB, free: 5.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.604e-05/0.3056, allocations: 81.23 kB / 386.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008191/0.3064, allocations: 0.6614 MB / 387.5 MB, free: 4.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.3065, allocations: 31.81 kB / 387.5 MB, free: 4.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003475/0.3068, allocations: 0.6835 MB / 388.2 MB, free: 4.379 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.347e-05/0.3069, allocations: 118.3 kB / 388.3 MB, free: 4.293 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.3071, allocations: 147 kB / 388.5 MB, free: 4.211 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.3072, allocations: 384.2 kB / 388.9 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002669/0.3074, allocations: 150.9 kB / 389 MB, free: 3.816 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004074/0.3079, allocations: 0.5506 MB / 389.6 MB, free: 3.215 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.0008367/0.3087, allocations: 0.9587 MB / 390.5 MB, free: 2.332 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.225e-06/0.3087, allocations: 7.031 kB / 390.5 MB, free: 2.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001165/0.3099, allocations: 0.7905 MB / 391.3 MB, free: 2.062 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.3099, allocations: 16.08 kB / 391.3 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.31, allocations: 14.09 kB / 391.3 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002347/0.3102, allocations: 82.61 kB / 391.4 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005325/0.3107, allocations: 186.7 kB / 391.6 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00208/0.3128, allocations: 3.321 MB / 394.9 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004007/0.3132, allocations: 33.69 kB / 395 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.084e-05/0.3133, allocations: 39.88 kB / 395 MB, free: 14.78 MB / 318.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.0003811/0.3137, allocations: 274.6 kB / 395.3 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.3138, allocations: 77.28 kB / 395.3 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001117/0.3139, allocations: 70.8 kB / 395.4 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.3139, allocations: 6.719 kB / 395.4 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.314, allocations: 6.219 kB / 395.4 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.314, allocations: 4.312 kB / 395.4 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001787/0.3158, allocations: 1.244 MB / 396.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3158, allocations: 1.188 kB / 396.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003012/0.3161, allocations: 67.33 kB / 396.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001457/0.3162, allocations: 55.08 kB / 396.8 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.3163, allocations: 14.48 kB / 396.8 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002113/0.3184, allocations: 3.055 MB / 399.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3184, allocations: 2.031 kB / 399.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008473/0.3193, allocations: 0.6355 MB / 400.5 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.3194, allocations: 139.6 kB / 400.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.538e-05/0.3195, allocations: 11.61 kB / 400.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002552/0.3197, allocations: 16.41 kB / 400.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.355e-05/0.3198, allocations: 31.98 kB / 400.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.3198, allocations: 11.48 kB / 400.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005018/0.3203, allocations: 435.5 kB / 401.1 MB, free: 9.941 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.61e-07/0.3204, allocations: 1.125 kB / 401.1 MB, free: 9.941 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008869/0.3212, allocations: 161.9 kB / 401.3 MB, free: 9.922 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.0001421/0.3214, allocations: 114.6 kB / 401.4 MB, free: 9.824 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009669/0.3224, allocations: 0.6478 MB / 402.1 MB, free: 9.492 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3224, allocations: 1.625 kB / 402.1 MB, free: 9.492 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004558/0.3228, allocations: 368.3 kB / 402.4 MB, free: 9.223 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005149/0.3234, allocations: 83.47 kB / 402.5 MB, free: 9.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002769/0.3261, allocations: 1.808 MB / 404.3 MB, free: 8.059 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007005/0.3269, allocations: 1.037 MB / 405.3 MB, free: 7.211 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002391/0.3271, allocations: 87.2 kB / 405.4 MB, free: 7.164 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.3272, allocations: 58.23 kB / 405.5 MB, free: 7.145 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3272, allocations: 1.438 kB / 405.5 MB, free: 7.145 MB / 318.1 MB Notification: Performance of Templates: time 0.01081/0.338, allocations: 5.418 MB / 410.9 MB, free: 4.297 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 -s gbode -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/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