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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001332/0.001332, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001499/0.001499, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.4 MB / 246.3 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 65.48 kB / 306.4 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09875/0.09992, allocations: 50.53 MB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006725/0.1067, allocations: 5.989 MB / 362.9 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00314/0.1099, allocations: 1.702 MB / 364.6 MB, free: 6.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009673/0.1108, allocations: 31.88 kB / 364.6 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000755/0.1116, allocations: 186.5 kB / 364.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008561/0.1125, allocations: 170.5 kB / 365 MB, free: 6.082 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001118/0.1136, allocations: 463.6 kB / 365.4 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001581/0.1152, allocations: 1.305 MB / 366.7 MB, free: 4.316 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008321/0.1161, allocations: 0.5491 MB / 367.3 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006396/0.1167, allocations: 422.1 kB / 367.7 MB, free: 3.336 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006003/0.1174, allocations: 485.2 kB / 368.2 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000163/0.1175, allocations: 76 kB / 368.2 MB, free: 2.785 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002326/0.1178, allocations: 91.94 kB / 368.3 MB, free: 2.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.1179, allocations: 215.1 kB / 368.5 MB, free: 2.484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004551/0.1184, allocations: 0.5709 MB / 369.1 MB, free: 1.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.1194, allocations: 1.456 MB / 370.6 MB, free: 460 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.279e-06/0.1195, allocations: 0 / 370.6 MB, free: 460 kB / 302.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1195, allocations: 3.938 kB / 370.6 MB, free: 456 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.1195, allocations: 0 / 370.6 MB, free: 456 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.1552/0.2747, allocations: 1.463 MB / 372 MB, free: 19.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.2747, allocations: 9.641 kB / 372 MB, free: 19.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004357/0.2752, allocations: 180.4 kB / 372.2 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006846/0.2759, allocations: 162.8 kB / 372.4 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/0.2773, allocations: 0.7212 MB / 373.1 MB, free: 19.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.358e-05/0.2774, allocations: 87.41 kB / 373.2 MB, free: 19.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001997/0.2776, allocations: 122.6 kB / 373.3 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002232/0.2798, allocations: 1.269 MB / 374.6 MB, free: 18.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.181e-05/0.2798, allocations: 11.09 kB / 374.6 MB, free: 18.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.956e-05/0.2799, allocations: 54.69 kB / 374.6 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.184e-05/0.28, allocations: 32.41 kB / 374.7 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/0.2813, allocations: 0.6871 MB / 375.3 MB, free: 18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004849/0.2862, allocations: 6.822 MB / 382.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006209/0.2868, allocations: 266.3 kB / 382.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003409/0.2872, allocations: 185.2 kB / 382.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001654/0.2873, allocations: 84.14 kB / 382.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.2874, allocations: 41.8 kB / 382.7 MB, free: 12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.915e-06/0.2874, allocations: 0 / 382.7 MB, free: 12 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002255/0.2896, allocations: 1.399 MB / 384.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.2897, allocations: 80.61 kB / 384.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000767/0.2905, allocations: 0.658 MB / 384.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.2905, allocations: 30.83 kB / 384.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003673/0.2909, allocations: 0.6833 MB / 385.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.159e-05/0.291, allocations: 115.7 kB / 385.7 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.2911, allocations: 148.1 kB / 385.8 MB, free: 9.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.2913, allocations: 393.2 kB / 386.2 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002738/0.2916, allocations: 146.5 kB / 386.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004176/0.292, allocations: 0.5446 MB / 386.9 MB, free: 8.84 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.0008326/0.2928, allocations: 0.9639 MB / 387.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/0.2928, allocations: 7.953 kB / 387.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00115/0.294, allocations: 0.7938 MB / 388.7 MB, free: 7.539 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.294, allocations: 10.88 kB / 388.7 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.2941, allocations: 19.31 kB / 388.7 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002522/0.2943, allocations: 81.44 kB / 388.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005351/0.2949, allocations: 183.1 kB / 389 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.2967, allocations: 2.982 MB / 391.9 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004151/0.2971, allocations: 30.7 kB / 392 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.276e-05/0.2972, allocations: 44.03 kB / 392 MB, free: 4.559 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.0004225/0.2976, allocations: 278.1 kB / 392.3 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.2977, allocations: 74.56 kB / 392.4 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001113/0.2978, allocations: 71.7 kB / 392.4 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/0.2978, allocations: 3.844 kB / 392.4 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.2979, allocations: 1.312 kB / 392.4 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.2979, allocations: 3.234 kB / 392.4 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001807/0.2997, allocations: 1.251 MB / 393.7 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2997, allocations: 1.438 kB / 393.7 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003057/0.3, allocations: 68.77 kB / 393.8 MB, free: 3.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000142/0.3002, allocations: 56.61 kB / 393.8 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.3002, allocations: 7.625 kB / 393.8 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.3016, allocations: 2.786 MB / 396.6 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3017, allocations: 1.094 kB / 396.6 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008432/0.3025, allocations: 0.6395 MB / 397.2 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.536e-05/0.3026, allocations: 143.9 kB / 397.4 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.621e-05/0.3027, allocations: 10.94 kB / 397.4 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/0.3029, allocations: 16.55 kB / 397.4 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.063e-05/0.303, allocations: 23.12 kB / 397.4 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/0.3031, allocations: 8.234 kB / 397.4 MB, free: 136 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000604/0.3037, allocations: 439.4 kB / 397.9 MB, free: 15.94 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3037, allocations: 4 kB / 397.9 MB, free: 15.94 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001082/0.3048, allocations: 155.5 kB / 398 MB, free: 15.92 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.00126/0.306, allocations: 1.188 MB / 399.2 MB, free: 14.96 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00123/0.3073, allocations: 0.6562 MB / 399.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3073, allocations: 0 / 399.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00052/0.3078, allocations: 367.8 kB / 400.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006059/0.3084, allocations: 83.22 kB / 400.3 MB, free: 14.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009876/0.3183, allocations: 7.148 MB / 407.5 MB, free: 8.762 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007141/0.3191, allocations: 1.038 MB / 408.5 MB, free: 7.914 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003414/0.3194, allocations: 82.91 kB / 408.6 MB, free: 7.871 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004537/0.3199, allocations: 427.8 kB / 409 MB, free: 7.492 MB / 318.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3199, allocations: 0 / 409 MB, free: 7.492 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/0.3451, allocations: 12 MB / 421 MB, free: 12.8 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/0.3454, allocations: 226.4 kB / 421.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.97/2.316, allocations: 0 / 421.2 MB, free: 12.54 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > 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