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.001985/0.001985, 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.002172/0.002172, 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.001246/0.001247, allocations: 64.42 kB / 306.6 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1061, allocations: 50.54 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007117/0.1132, allocations: 5.989 MB / 363.1 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003643/0.1169, allocations: 1.691 MB / 364.8 MB, free: 6.586 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.118, allocations: 31.81 kB / 364.8 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007841/0.1188, allocations: 190.5 kB / 365 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008897/0.1197, allocations: 174.4 kB / 365.2 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001313/0.121, allocations: 463.6 kB / 365.6 MB, free: 5.742 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001726/0.1228, allocations: 1.387 MB / 367 MB, free: 4.348 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009397/0.1237, allocations: 0.6247 MB / 367.6 MB, free: 3.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007443/0.1245, allocations: 490 kB / 368.1 MB, free: 3.223 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006459/0.1252, allocations: 0.4934 MB / 368.6 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002202/0.1254, allocations: 124 kB / 368.7 MB, free: 2.605 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003109/0.1257, allocations: 136 kB / 368.8 MB, free: 2.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00023/0.126, allocations: 259 kB / 369.1 MB, free: 2.219 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006121/0.1266, allocations: 0.6178 MB / 369.7 MB, free: 1.598 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.128, allocations: 1.577 MB / 371.3 MB, free: 16 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.128, allocations: 0 / 371.3 MB, free: 16 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.128, allocations: 3.938 kB / 371.3 MB, free: 12 kB / 302.1 MB Notification: Performance of Transformations before backend: time 5.732e-05/0.1281, allocations: 0 / 371.3 MB, free: 12 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.1712/0.2993, allocations: 1.455 MB / 372.8 MB, free: 19.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.84e-05/0.2994, allocations: 9.562 kB / 372.8 MB, free: 19.89 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002331/0.2996, allocations: 179.3 kB / 372.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004548/0.3001, allocations: 161.5 kB / 373.1 MB, free: 19.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001502/0.3016, allocations: 0.7179 MB / 373.8 MB, free: 19.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.3017, allocations: 89.94 kB / 373.9 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002463/0.302, allocations: 125.3 kB / 374 MB, free: 19.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002478/0.3045, allocations: 1.262 MB / 375.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.795e-05/0.3045, allocations: 14.59 kB / 375.3 MB, free: 18.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.413e-05/0.3046, allocations: 50.77 kB / 375.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.093e-05/0.3047, allocations: 32.53 kB / 375.4 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.306, allocations: 0.6871 MB / 376.1 MB, free: 18.19 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005931/0.312, allocations: 6.831 MB / 382.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006643/0.3127, allocations: 264.8 kB / 383.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003874/0.3131, allocations: 190 kB / 383.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002012/0.3133, allocations: 84.7 kB / 383.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/0.3133, allocations: 34.03 kB / 383.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 3.376e-06/0.3133, allocations: 7.562 kB / 383.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002359/0.3157, allocations: 1.399 MB / 384.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/0.3157, allocations: 84.55 kB / 384.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008116/0.3166, allocations: 0.6615 MB / 385.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.3166, allocations: 31.98 kB / 385.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003844/0.317, allocations: 0.6819 MB / 386.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.048e-05/0.3171, allocations: 119.9 kB / 386.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/0.3173, allocations: 143.4 kB / 386.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.3174, allocations: 388.8 kB / 387 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002745/0.3177, allocations: 147.7 kB / 387.1 MB, free: 9.617 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004627/0.3181, allocations: 0.5518 MB / 387.7 MB, free: 9.008 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.001006/0.3192, allocations: 0.9626 MB / 388.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.3192, allocations: 4.125 kB / 388.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001309/0.3205, allocations: 0.7885 MB / 389.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.3205, allocations: 11.91 kB / 389.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/0.3206, allocations: 14.44 kB / 389.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002685/0.3208, allocations: 87.27 kB / 389.5 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005705/0.3214, allocations: 182.4 kB / 389.7 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001964/0.3234, allocations: 3.325 MB / 393 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000445/0.3238, allocations: 31.11 kB / 393.1 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-05/0.3239, allocations: 44.89 kB / 393.1 MB, free: 4.395 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.0003893/0.3243, allocations: 274.4 kB / 393.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.3244, allocations: 78.78 kB / 393.4 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.3245, allocations: 72.11 kB / 393.5 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.3246, allocations: 3.656 kB / 393.5 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.3246, allocations: 6.75 kB / 393.5 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.3246, allocations: 1.5 kB / 393.5 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/0.3265, allocations: 1.247 MB / 394.8 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.3265, allocations: 5.031 kB / 394.8 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003365/0.3268, allocations: 68.08 kB / 394.8 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.327, allocations: 52.84 kB / 394.9 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.327, allocations: 8.344 kB / 394.9 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001589/0.3286, allocations: 3.059 MB / 398 MB, free: 276 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.3287, allocations: 2.25 kB / 398 MB, free: 276 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00095/0.3296, allocations: 0.6295 MB / 398.6 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001569/0.3298, allocations: 151.8 kB / 398.7 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.989e-05/0.3299, allocations: 8.312 kB / 398.7 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002853/0.3302, allocations: 15.98 kB / 398.8 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.499e-05/0.3302, allocations: 31.14 kB / 398.8 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.3303, allocations: 8.078 kB / 398.8 MB, free: 15.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006166/0.3309, allocations: 439.8 kB / 399.2 MB, free: 15.49 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3309, allocations: 0 / 399.2 MB, free: 15.49 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001037/0.3319, allocations: 155 kB / 399.4 MB, free: 15.47 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.001328/0.3333, allocations: 1.188 MB / 400.6 MB, free: 14.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.3345, allocations: 0.6619 MB / 401.2 MB, free: 14.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.3346, allocations: 3.281 kB / 401.2 MB, free: 14.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005291/0.3351, allocations: 366.2 kB / 401.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000581/0.3357, allocations: 75.44 kB / 401.7 MB, free: 13.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/0.3467, allocations: 7.151 MB / 408.8 MB, free: 8.207 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006528/0.3474, allocations: 1.036 MB / 409.9 MB, free: 7.359 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003259/0.3477, allocations: 85.55 kB / 409.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004834/0.3482, allocations: 426.7 kB / 410.4 MB, free: 6.934 MB / 318.1 MB Notification: Performance of SimCode: time 2.986e-06/0.3482, allocations: 3.938 kB / 410.4 MB, free: 6.93 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03813/0.3863, allocations: 12.24 MB / 422.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002337/0.3866, allocations: 231 kB / 422.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.321/2.708, allocations: 8 kB / 422.8 MB, free: 11.48 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