Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8949/0.8949, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 3.938 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.302e-05/2.503e-05, allocations: 5.234 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003561/0.003586, allocations: 3.229 MB / 327.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.004843, allocations: 0.8101 MB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.00501, allocations: 11.94 kB / 328.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.005157, allocations: 71.3 kB / 328.7 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000181/0.005338, allocations: 142.6 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.005674, allocations: 143.7 kB / 329 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004062/0.00608, allocations: 0.5246 MB / 329.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.006252, allocations: 95.67 kB / 329.6 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003251/0.006577, allocations: 287.4 kB / 329.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/0.006725, allocations: 155.5 kB / 330 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.971e-05/0.006765, allocations: 36 kB / 330.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.628e-05/0.006841, allocations: 47.98 kB / 330.1 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.602e-05/0.006888, allocations: 83.67 kB / 330.2 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.00699, allocations: 159.5 kB / 330.4 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004001/0.00739, allocations: 0.5178 MB / 330.9 MB, free: 9.582 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.007393, allocations: 4 kB / 330.9 MB, free: 9.578 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.007394, allocations: 0 / 330.9 MB, free: 9.578 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.007403, allocations: 0 / 330.9 MB, free: 9.578 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0008719/0.008275, allocations: 0.6599 MB / 331.5 MB, free: 8.891 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.008317, allocations: 12.03 kB / 331.5 MB, free: 8.879 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.84e-05/0.008375, allocations: 70.72 kB / 331.6 MB, free: 8.801 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002153/0.008591, allocations: 80.58 kB / 331.7 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004323/0.009023, allocations: 261.5 kB / 331.9 MB, free: 8.438 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.009046, allocations: 25.03 kB / 332 MB, free: 8.414 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.397e-05/0.00908, allocations: 36.38 kB / 332 MB, free: 8.379 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004854/0.009566, allocations: 428.4 kB / 332.4 MB, free: 7.922 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.009575, allocations: 4.125 kB / 332.4 MB, free: 7.918 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.009601, allocations: 20.12 kB / 332.5 MB, free: 7.898 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.00961, allocations: 8 kB / 332.5 MB, free: 7.891 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003474/0.009957, allocations: 266.5 kB / 332.7 MB, free: 7.633 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.01124, allocations: 1.28 MB / 334 MB, free: 6.262 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002776/0.01152, allocations: 203.4 kB / 334.2 MB, free: 6.055 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.01164, allocations: 96.81 kB / 334.3 MB, free: 5.957 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.01167, allocations: 4 kB / 334.3 MB, free: 5.953 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.01169, allocations: 38.5 kB / 334.3 MB, free: 5.906 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.402e-06/0.01169, allocations: 4 kB / 334.3 MB, free: 5.902 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001186/0.01288, allocations: 474.8 kB / 334.8 MB, free: 5.426 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.01292, allocations: 59.34 kB / 334.9 MB, free: 5.355 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/0.01315, allocations: 312.5 kB / 335.2 MB, free: 5.039 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.01318, allocations: 33.7 kB / 335.2 MB, free: 5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.01329, allocations: 228.3 kB / 335.4 MB, free: 4.773 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.177e-05/0.01333, allocations: 75.33 kB / 335.5 MB, free: 4.699 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.927e-05/0.01339, allocations: 45.7 kB / 335.5 MB, free: 4.648 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.01349, allocations: 342.8 kB / 335.9 MB, free: 4.305 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.01361, allocations: 79.97 kB / 336 MB, free: 4.227 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.01374, allocations: 124.2 kB / 336.1 MB, free: 4.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002406/0.01399, allocations: 204.1 kB / 336.3 MB, free: 3.875 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.01399, allocations: 0 / 336.3 MB, free: 3.875 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004159/0.0144, allocations: 351.7 kB / 336.6 MB, free: 3.516 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.01442, allocations: 4 kB / 336.6 MB, free: 3.512 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.01442, allocations: 4 kB / 336.6 MB, free: 3.508 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002616/0.01469, allocations: 122.5 kB / 336.7 MB, free: 3.379 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.01479, allocations: 31.91 kB / 336.8 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002641/0.01743, allocations: 4.649 MB / 341.4 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.01755, allocations: 35.8 kB / 341.5 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.01756, allocations: 4 kB / 341.5 MB, free: 14.31 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003999/0.01796, allocations: 141.8 kB / 341.6 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.151e-05/0.018, allocations: 43.83 kB / 341.6 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.364e-05/0.01804, allocations: 43.27 kB / 341.7 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.01804, allocations: 0 / 341.7 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.01804, allocations: 0 / 341.7 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.01805, allocations: 3.984 kB / 341.7 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002581/0.0183, allocations: 308.5 kB / 342 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.01831, allocations: 4 kB / 342 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.685e-05/0.01836, allocations: 23.91 kB / 342 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002059/0.01857, allocations: 118.4 kB / 342.1 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.01858, allocations: 4 kB / 342.1 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002297/0.02088, allocations: 4.642 MB / 346.8 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.02088, allocations: 0 / 346.8 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003797/0.02126, allocations: 393.7 kB / 347.2 MB, free: 8.188 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.82e-05/0.02134, allocations: 52.02 kB / 347.2 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/0.02136, allocations: 4 kB / 347.2 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.02147, allocations: 15.98 kB / 347.2 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.405e-05/0.02156, allocations: 35.83 kB / 347.3 MB, free: 8.082 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.02157, allocations: 12.06 kB / 347.3 MB, free: 8.07 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001821/0.02175, allocations: 223.1 kB / 347.5 MB, free: 7.855 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.02175, allocations: 3.938 kB / 347.5 MB, free: 7.852 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005138/0.02226, allocations: 115.8 kB / 347.6 MB, free: 7.738 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006601/0.02293, allocations: 0.9281 MB / 348.5 MB, free: 6.773 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008131/0.02374, allocations: 0.566 MB / 349.1 MB, free: 6.168 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.02374, allocations: 0 / 349.1 MB, free: 6.168 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002865/0.02403, allocations: 482.7 kB / 349.6 MB, free: 5.66 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.02433, allocations: 57.67 kB / 349.6 MB, free: 5.605 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003017/0.02735, allocations: 3.16 MB / 352.8 MB, free: 2.312 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/0.0275, allocations: 190.8 kB / 353 MB, free: 2.109 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.0276, allocations: 22.98 kB / 353 MB, free: 2.086 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.02772, allocations: 116.4 kB / 353.1 MB, free: 1.973 MB / 314.7 MB Notification: Performance of SimCode: time 2.455e-06/0.02772, allocations: 0 / 353.1 MB, free: 1.973 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0286/0.05632, allocations: 9.434 MB / 362.6 MB, free: 8.754 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.934/7.991, allocations: 18.97 kB / 362.6 MB, free: 8.738 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199521 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable With_Ron_Goff.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv. Warning: Get data of variable With_Ron_Goff.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv failed! Error: Could not read variable With_Ron_Goff_Vknee.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv. Warning: Get data of variable With_Ron_Goff_Vknee.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.842590543441474]