Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier",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.001203/0.001203, allocations: 99.55 kB / 17.58 MB, free: 5.418 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.001125/0.001125, allocations: 192.1 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.623/1.623, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 55.92 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08805/0.08939, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005463/0.09489, allocations: 4.198 MB / 331.6 MB, free: 144 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002104/0.09702, allocations: 0.9511 MB / 332.5 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005443/0.09759, allocations: 8 kB / 332.5 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003186/0.09794, allocations: 95.02 kB / 332.6 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006592/0.09861, allocations: 194.3 kB / 332.8 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003852/0.09901, allocations: 167.7 kB / 333 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000844/0.09987, allocations: 0.7206 MB / 333.7 MB, free: 14 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003713/0.1002, allocations: 223 kB / 333.9 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000453/0.1007, allocations: 286.9 kB / 334.2 MB, free: 13.49 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004655/0.1012, allocations: 330.5 kB / 334.5 MB, free: 13.17 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001279/0.1013, allocations: 64 kB / 334.6 MB, free: 13.11 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.1015, allocations: 60 kB / 334.7 MB, free: 13.05 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.1017, allocations: 147.4 kB / 334.8 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003879/0.102, allocations: 326.3 kB / 335.1 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006441/0.1027, allocations: 0.7006 MB / 335.8 MB, free: 11.88 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1027, allocations: 0 / 335.8 MB, free: 11.88 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1027, allocations: 0 / 335.8 MB, free: 11.88 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.543e-05/0.1028, allocations: 0 / 335.8 MB, free: 11.88 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001674/0.1044, allocations: 0.908 MB / 336.7 MB, free: 10.92 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.1045, allocations: 12.03 kB / 336.7 MB, free: 10.91 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001659/0.1047, allocations: 115.8 kB / 336.9 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.1048, allocations: 64.19 kB / 336.9 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004991/0.1053, allocations: 385.8 kB / 337.3 MB, free: 10.31 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.148e-05/0.1054, allocations: 45.69 kB / 337.3 MB, free: 10.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.895e-05/0.1054, allocations: 52.38 kB / 337.4 MB, free: 10.21 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008626/0.1063, allocations: 0.5732 MB / 338 MB, free: 9.613 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.1063, allocations: 4 kB / 338 MB, free: 9.609 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.43e-05/0.1064, allocations: 24 kB / 338 MB, free: 9.586 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.1064, allocations: 12 kB / 338 MB, free: 9.574 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000814/0.1072, allocations: 468.9 kB / 338.5 MB, free: 9.117 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/0.1099, allocations: 2.09 MB / 340.5 MB, free: 6.938 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008601/0.1108, allocations: 0.6454 MB / 341.2 MB, free: 6.27 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005554/0.1114, allocations: 398.2 kB / 341.6 MB, free: 5.879 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.368e-05/0.1114, allocations: 4.562 kB / 341.6 MB, free: 5.875 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.1115, allocations: 43.12 kB / 341.6 MB, free: 5.82 MB / 286.1 MB Notification: Performance of pre-optimization done (n=60): time 2.976e-06/0.1115, allocations: 0 / 341.6 MB, free: 5.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.004135/0.1156, allocations: 2.036 MB / 343.7 MB, free: 3.664 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.1157, allocations: 59.95 kB / 343.7 MB, free: 3.594 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003456/0.116, allocations: 365.6 kB / 344.1 MB, free: 3.227 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/0.1161, allocations: 33.7 kB / 344.1 MB, free: 3.188 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.1162, allocations: 245 kB / 344.4 MB, free: 2.945 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.1164, allocations: 201.1 kB / 344.5 MB, free: 2.746 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.1165, allocations: 98.14 kB / 344.6 MB, free: 2.645 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.1166, allocations: 354.7 kB / 345 MB, free: 2.289 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003177/0.1169, allocations: 165 kB / 345.2 MB, free: 2.129 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003366/0.1173, allocations: 215.8 kB / 345.4 MB, free: 1.914 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006341/0.1179, allocations: 372.9 kB / 345.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1179, allocations: 4 kB / 345.7 MB, free: 1.539 MB / 286.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001121/0.1191, allocations: 0.6695 MB / 346.4 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.1191, allocations: 15.86 kB / 346.4 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.1191, allocations: 4 kB / 346.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007032/0.1198, allocations: 255.2 kB / 346.7 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.1201, allocations: 67.89 kB / 346.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006191/0.1263, allocations: 7.493 MB / 354.2 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.1266, allocations: 20.02 kB / 354.2 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-05/0.1266, allocations: 16 kB / 354.3 MB, free: 8.422 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode6.off,IdealDiode5.off,IdealDiode4.off,IdealDiode3.off,IdealDiode2.off,IdealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002053/0.1268, allocations: 173.8 kB / 354.4 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.313e-05/0.1269, allocations: 55.28 kB / 354.5 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.127, allocations: 68.95 kB / 354.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1271, allocations: 8.531 kB / 354.6 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.1271, allocations: 4 kB / 354.6 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1271, allocations: 3.984 kB / 354.6 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001956/0.129, allocations: 1.353 MB / 355.9 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.1291, allocations: 0 / 355.9 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.1293, allocations: 63.97 kB / 356 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006781/0.13, allocations: 259.2 kB / 356.2 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.93e-05/0.1301, allocations: 12 kB / 356.2 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006578/0.1367, allocations: 7.497 MB / 363.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1367, allocations: 3.938 kB / 363.7 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001724/0.1384, allocations: 1.033 MB / 364.8 MB, free: 13.22 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002183/0.1386, allocations: 164.5 kB / 364.9 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.359e-05/0.1387, allocations: 11.98 kB / 365 MB, free: 13.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000263/0.139, allocations: 19.98 kB / 365 MB, free: 13.01 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.1392, allocations: 52.44 kB / 365 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.34e-05/0.1392, allocations: 24.39 kB / 365 MB, free: 12.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003055/0.1395, allocations: 255.2 kB / 365.3 MB, free: 12.69 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1395, allocations: 0 / 365.3 MB, free: 12.69 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008771/0.1404, allocations: 176 kB / 365.5 MB, free: 12.52 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002071/0.1425, allocations: 1.59 MB / 367.1 MB, free: 10.88 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001831/0.1443, allocations: 1.053 MB / 368.1 MB, free: 9.781 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.1443, allocations: 4 kB / 368.1 MB, free: 9.777 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.1455, allocations: 0.8454 MB / 369 MB, free: 8.879 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000748/0.1463, allocations: 89.58 kB / 369 MB, free: 8.789 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00782/0.1541, allocations: 5.217 MB / 374.3 MB, free: 3.461 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007033/0.1548, allocations: 0.8831 MB / 375.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001951/0.1551, allocations: 48.56 kB / 375.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002454/0.1553, allocations: 171.4 kB / 375.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of SimCode: time 2.335e-06/0.1553, allocations: 0 / 375.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2255/0.3808, allocations: 13.55 MB / 388.9 MB, free: 50.86 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.43, allocations: 8.406 kB / 388.9 MB, free: 50.86 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches