Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 124.7 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001874/0.001874, allocations: 186.9 kB / 20.73 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 225.6 MB / 249.1 MB, free: 3.641 MB / 190.1 MB " [Timeout remaining time 178] 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.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 51.92 kB / 365.7 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1019, allocations: 52.14 MB / 417.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005513/0.1074, allocations: 4.27 MB / 422.1 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.1091, allocations: 0.9268 MB / 423 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002128/0.1093, allocations: 11.94 kB / 423 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002386/0.1095, allocations: 95.06 kB / 423.1 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00046/0.11, allocations: 206.2 kB / 423.3 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.1103, allocations: 163.8 kB / 423.5 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007483/0.111, allocations: 0.7244 MB / 424.2 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002768/0.1113, allocations: 159.1 kB / 424.3 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003346/0.1116, allocations: 282.9 kB / 424.6 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004041/0.1121, allocations: 326.5 kB / 424.9 MB, free: 5.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.834e-05/0.1121, allocations: 64 kB / 425 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.966e-05/0.1122, allocations: 60 kB / 425.1 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.1124, allocations: 151.4 kB / 425.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002989/0.1127, allocations: 330.3 kB / 425.5 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007458/0.1134, allocations: 0.7157 MB / 426.2 MB, free: 4.203 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1134, allocations: 0 / 426.2 MB, free: 4.203 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1134, allocations: 0 / 426.2 MB, free: 4.203 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.1135, allocations: 0 / 426.2 MB, free: 4.203 MB / 350.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.001474/0.1149, allocations: 0.9269 MB / 427.2 MB, free: 3.223 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.115, allocations: 12.03 kB / 427.2 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000146/0.1151, allocations: 111.9 kB / 427.3 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.1152, allocations: 72.52 kB / 427.4 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005575/0.1158, allocations: 390.2 kB / 427.7 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.499e-05/0.1158, allocations: 41.69 kB / 427.8 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.278e-05/0.1159, allocations: 52.38 kB / 427.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009339/0.1168, allocations: 0.577 MB / 428.4 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.1168, allocations: 3.984 kB / 428.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.727e-05/0.1169, allocations: 28 kB / 428.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.1169, allocations: 12 kB / 428.5 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008713/0.1178, allocations: 464.9 kB / 428.9 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002817/0.1206, allocations: 2.083 MB / 431 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000908/0.1215, allocations: 0.5991 MB / 431.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005709/0.1221, allocations: 362.9 kB / 432 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.784e-05/0.1221, allocations: 8.562 kB / 432 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.1221, allocations: 39.12 kB / 432 MB, free: 14.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=60): time 1.894e-06/0.1221, allocations: 0 / 432 MB, free: 14.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.004275/0.1264, allocations: 2.029 MB / 434 MB, free: 12.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.1265, allocations: 59.97 kB / 434.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003971/0.1269, allocations: 361.7 kB / 434.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/0.1269, allocations: 37.7 kB / 434.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.1271, allocations: 241.4 kB / 434.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001684/0.1272, allocations: 218.1 kB / 434.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/0.1274, allocations: 94.2 kB / 435 MB, free: 11.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.1276, allocations: 358.7 kB / 435.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003355/0.1279, allocations: 169 kB / 435.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003653/0.1283, allocations: 219.7 kB / 435.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006802/0.1289, allocations: 376.8 kB / 436.1 MB, free: 9.906 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1289, allocations: 4 kB / 436.1 MB, free: 9.902 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001206/0.1301, allocations: 0.6502 MB / 436.8 MB, free: 9.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.1302, allocations: 12.03 kB / 436.8 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1302, allocations: 0 / 436.8 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006896/0.1309, allocations: 251.2 kB / 437 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002878/0.1312, allocations: 67.91 kB / 437.1 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007167/0.1383, allocations: 7.502 MB / 444.6 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002759/0.1386, allocations: 24.08 kB / 444.6 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.137e-05/0.1386, allocations: 16 kB / 444.6 MB, free: 0.8008 MB / 366.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.0002431/0.1389, allocations: 173.9 kB / 444.8 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.694e-05/0.139, allocations: 55.61 kB / 444.9 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.1391, allocations: 64.95 kB / 444.9 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.1391, allocations: 4 kB / 444.9 MB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.1391, allocations: 4 kB / 444.9 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1391, allocations: 7.984 kB / 444.9 MB, free: 500 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1741/0.3131, allocations: 1.334 MB / 446.3 MB, free: 29.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.3132, allocations: 0.5 kB / 446.3 MB, free: 29.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.3134, allocations: 56.11 kB / 446.3 MB, free: 29.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006384/0.3141, allocations: 259.7 kB / 446.6 MB, free: 29.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.195e-05/0.3141, allocations: 8.812 kB / 446.6 MB, free: 29.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005168/0.3193, allocations: 7.509 MB / 454.1 MB, free: 23.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3193, allocations: 7.281 kB / 454.1 MB, free: 23.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001496/0.3208, allocations: 1.016 MB / 455.1 MB, free: 23.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000188/0.321, allocations: 163.2 kB / 455.3 MB, free: 23.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.204e-05/0.321, allocations: 10.09 kB / 455.3 MB, free: 23.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002374/0.3213, allocations: 17.66 kB / 455.3 MB, free: 23.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.3214, allocations: 49.44 kB / 455.4 MB, free: 23.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.978e-05/0.3214, allocations: 14.7 kB / 455.4 MB, free: 23.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002687/0.3217, allocations: 261.2 kB / 455.6 MB, free: 23.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3217, allocations: 4.375 kB / 455.6 MB, free: 23.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008389/0.3226, allocations: 173.2 kB / 455.8 MB, free: 23.45 MB / 366.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.001793/0.3243, allocations: 1.582 MB / 457.4 MB, free: 22.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001566/0.3259, allocations: 1.015 MB / 458.4 MB, free: 22.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3259, allocations: 0 / 458.4 MB, free: 22.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.327, allocations: 0.8214 MB / 459.2 MB, free: 21.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005221/0.3275, allocations: 93.75 kB / 459.3 MB, free: 21.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006718/0.3342, allocations: 5.059 MB / 464.4 MB, free: 18.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004169/0.3346, allocations: 0.8837 MB / 465.2 MB, free: 17.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000227/0.3349, allocations: 49.75 kB / 465.3 MB, free: 17.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.3351, allocations: 172.7 kB / 465.5 MB, free: 17.78 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3351, allocations: 0 / 465.5 MB, free: 17.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08601/0.4211, allocations: 13.94 MB / 479.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/13.44, allocations: 8.547 kB / 479.4 MB, free: 13.19 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --stepSize=1e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.505307118874043]