Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 111.7 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.00124, allocations: 190 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 43.2 kB / 300.2 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1194, allocations: 49.44 MB / 349.7 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008242/0.1277, allocations: 5.976 MB / 355.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004387/0.1321, allocations: 1.605 MB / 357.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001701/0.1338, allocations: 35.81 kB / 357.3 MB, free: 13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.135, allocations: 182.5 kB / 357.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001512/0.1366, allocations: 170.5 kB / 357.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001717/0.1383, allocations: 451.6 kB / 358.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00245/0.1408, allocations: 1.391 MB / 359.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00132/0.1421, allocations: 0.6286 MB / 360.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008781/0.143, allocations: 474.1 kB / 360.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005254/0.1435, allocations: 0.4973 MB / 361.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001593/0.1437, allocations: 124 kB / 361.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000254/0.144, allocations: 132 kB / 361.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002159/0.1442, allocations: 267 kB / 361.6 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005624/0.1448, allocations: 0.6139 MB / 362.2 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00151/0.1463, allocations: 1.561 MB / 363.7 MB, free: 6.504 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.1463, allocations: 0 / 363.7 MB, free: 6.504 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1463, allocations: 3.938 kB / 363.7 MB, free: 6.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.667e-05/0.1464, allocations: 3.938 kB / 363.8 MB, free: 6.496 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.002251/0.1486, allocations: 1.458 MB / 365.2 MB, free: 4.984 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.1487, allocations: 8.031 kB / 365.2 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002044/0.1489, allocations: 177.7 kB / 365.4 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002088/0.1491, allocations: 150.2 kB / 365.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/0.1501, allocations: 0.716 MB / 366.3 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.107e-05/0.1502, allocations: 90.41 kB / 366.3 MB, free: 3.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.1504, allocations: 116 kB / 366.5 MB, free: 3.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002059/0.1524, allocations: 1.264 MB / 367.7 MB, free: 2.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.804e-05/0.1525, allocations: 7.938 kB / 367.7 MB, free: 2.238 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.811e-05/0.1526, allocations: 52 kB / 367.8 MB, free: 2.188 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.435e-05/0.1526, allocations: 36 kB / 367.8 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001291/0.1539, allocations: 0.689 MB / 368.5 MB, free: 1.465 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1572/0.3111, allocations: 6.815 MB / 375.3 MB, free: 19.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006465/0.3118, allocations: 261.8 kB / 375.6 MB, free: 19.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003232/0.3121, allocations: 182.8 kB / 375.8 MB, free: 19.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001615/0.3123, allocations: 85.33 kB / 375.8 MB, free: 19.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.917e-05/0.3123, allocations: 44.72 kB / 375.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.174e-06/0.3123, allocations: 0 / 375.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002119/0.3145, allocations: 1.396 MB / 377.3 MB, free: 18.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.3145, allocations: 84.7 kB / 377.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006679/0.3152, allocations: 0.6597 MB / 378 MB, free: 18.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.3152, allocations: 30.83 kB / 378 MB, free: 18.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.3155, allocations: 0.6789 MB / 378.7 MB, free: 17.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.407e-05/0.3156, allocations: 113.5 kB / 378.8 MB, free: 17.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.3157, allocations: 148.8 kB / 379 MB, free: 17.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.048e-05/0.3158, allocations: 388.1 kB / 379.4 MB, free: 17.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002504/0.3161, allocations: 143.4 kB / 379.5 MB, free: 17.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003629/0.3164, allocations: 0.5611 MB / 380.1 MB, free: 16.67 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.0008123/0.3173, allocations: 0.9534 MB / 381 MB, free: 15.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.3173, allocations: 4.656 kB / 381 MB, free: 15.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001092/0.3184, allocations: 0.7984 MB / 381.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.3184, allocations: 12.38 kB / 381.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/0.3184, allocations: 17.84 kB / 381.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002179/0.3186, allocations: 86.88 kB / 381.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005255/0.3192, allocations: 177 kB / 382.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.3209, allocations: 3.326 MB / 385.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003898/0.3213, allocations: 32.91 kB / 385.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.658e-05/0.3213, allocations: 48.25 kB / 385.5 MB, free: 12.06 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.0003166/0.3216, allocations: 274.8 kB / 385.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.865e-05/0.3217, allocations: 77.47 kB / 385.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.3219, allocations: 79.73 kB / 385.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.3219, allocations: 3.438 kB / 385.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.3219, allocations: 1.938 kB / 385.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.3219, allocations: 2.797 kB / 385.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.3236, allocations: 1.255 MB / 387.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3236, allocations: 1.531 kB / 387.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003187/0.3239, allocations: 63.77 kB / 387.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001536/0.3241, allocations: 57.09 kB / 387.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.382e-05/0.3241, allocations: 11.97 kB / 387.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001388/0.3255, allocations: 3.048 MB / 390.4 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3255, allocations: 2.453 kB / 390.4 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008235/0.3264, allocations: 0.6301 MB / 391 MB, free: 7.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.3265, allocations: 135.2 kB / 391.1 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.49e-05/0.3265, allocations: 9.438 kB / 391.2 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002674/0.3268, allocations: 19.7 kB / 391.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.426e-05/0.3269, allocations: 33.81 kB / 391.2 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.1e-05/0.3269, allocations: 14.36 kB / 391.2 MB, free: 7.359 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000612/0.3275, allocations: 433.5 kB / 391.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3276, allocations: 1.281 kB / 391.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001113/0.3287, allocations: 157.8 kB / 391.8 MB, free: 7.152 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 (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.001135/0.3298, allocations: 1.185 MB / 393 MB, free: 6.199 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001208/0.331, allocations: 0.6583 MB / 393.6 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3311, allocations: 0.6875 kB / 393.6 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004242/0.3315, allocations: 367.7 kB / 394 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005277/0.332, allocations: 73.06 kB / 394.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009975/0.342, allocations: 7.123 MB / 401.2 MB, free: 404 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/0.3426, allocations: 1.039 MB / 402.2 MB, free: 15.68 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003191/0.3429, allocations: 86.39 kB / 402.3 MB, free: 15.65 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000452/0.3434, allocations: 422.5 kB / 402.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3434, allocations: 0 / 402.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02937/0.3728, allocations: 12.17 MB / 414.9 MB, free: 6.375 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002126/0.373, allocations: 228 kB / 415.1 MB, free: 6.121 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.242/2.615, allocations: 7.875 kB / 415.1 MB, free: 6.113 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches