Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001185/0.001185, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001459/0.001459, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.901/0.901, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] 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.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.173e-06/1.173e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.066e-05, allocations: 2.281 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003011/0.003032, allocations: 3.227 MB / 327.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.004231, allocations: 0.8139 MB / 328.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/0.004407, allocations: 15.94 kB / 328.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.004561, allocations: 71.28 kB / 328.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001815/0.004742, allocations: 138.6 kB / 328.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003689/0.005111, allocations: 139.8 kB / 328.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004414/0.005553, allocations: 0.5362 MB / 329.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002375/0.00579, allocations: 99.62 kB / 329.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000451/0.006241, allocations: 283.4 kB / 329.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001878/0.006429, allocations: 159.5 kB / 330 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.227e-05/0.006481, allocations: 40 kB / 330 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.081e-05/0.006572, allocations: 40 kB / 330.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.848e-05/0.006631, allocations: 95.59 kB / 330.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.00674, allocations: 147.7 kB / 330.3 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004654/0.007205, allocations: 0.5138 MB / 330.8 MB, free: 9.555 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.007211, allocations: 8 kB / 330.8 MB, free: 9.547 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.007213, allocations: 0 / 330.8 MB, free: 9.547 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.007219, allocations: 0 / 330.8 MB, free: 9.547 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.0007744/0.007993, allocations: 0.6606 MB / 331.5 MB, free: 8.855 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.008041, allocations: 12.03 kB / 331.5 MB, free: 8.844 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.449e-05/0.008116, allocations: 70.72 kB / 331.6 MB, free: 8.766 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002303/0.008346, allocations: 76.58 kB / 331.6 MB, free: 8.691 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000425/0.008771, allocations: 261.5 kB / 331.9 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.008793, allocations: 29.03 kB / 331.9 MB, free: 8.379 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.056e-05/0.008824, allocations: 36.36 kB / 332 MB, free: 8.344 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004357/0.009259, allocations: 432.4 kB / 332.4 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.00927, allocations: 4.125 kB / 332.4 MB, free: 7.879 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/0.009296, allocations: 20.12 kB / 332.4 MB, free: 7.859 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.009304, allocations: 8 kB / 332.4 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003348/0.009639, allocations: 262.5 kB / 332.7 MB, free: 7.598 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.01089, allocations: 1.284 MB / 334 MB, free: 6.223 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000275/0.01116, allocations: 198.4 kB / 334.2 MB, free: 6.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.01129, allocations: 96.81 kB / 334.2 MB, free: 5.922 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.01131, allocations: 7.938 kB / 334.3 MB, free: 5.914 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.01134, allocations: 38.56 kB / 334.3 MB, free: 5.867 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.585e-06/0.01134, allocations: 4 kB / 334.3 MB, free: 5.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008749/0.01222, allocations: 481.2 kB / 334.8 MB, free: 5.379 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.998e-05/0.01225, allocations: 55.34 kB / 334.8 MB, free: 5.312 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002251/0.01247, allocations: 316.5 kB / 335.1 MB, free: 4.992 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.01249, allocations: 29.7 kB / 335.2 MB, free: 4.957 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.0126, allocations: 220.4 kB / 335.4 MB, free: 4.738 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.433e-05/0.01264, allocations: 79.33 kB / 335.5 MB, free: 4.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.784e-05/0.0127, allocations: 49.7 kB / 335.5 MB, free: 4.605 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.279e-05/0.01279, allocations: 338.8 kB / 335.8 MB, free: 4.266 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.01291, allocations: 79.97 kB / 335.9 MB, free: 4.188 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.01304, allocations: 120.2 kB / 336 MB, free: 4.055 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/0.01327, allocations: 204.1 kB / 336.2 MB, free: 3.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.01327, allocations: 0 / 336.2 MB, free: 3.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004143/0.01369, allocations: 355.6 kB / 336.6 MB, free: 3.477 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.0137, allocations: 8 kB / 336.6 MB, free: 3.469 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.01371, allocations: 0 / 336.6 MB, free: 3.469 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002727/0.01398, allocations: 114.6 kB / 336.7 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.01409, allocations: 35.91 kB / 336.7 MB, free: 3.312 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002502/0.01659, allocations: 4.637 MB / 341.4 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.01673, allocations: 27.83 kB / 341.4 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.01674, allocations: 4.188 kB / 341.4 MB, free: 14.3 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.0001411/0.01688, allocations: 153.8 kB / 341.5 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.521e-05/0.01692, allocations: 43.7 kB / 341.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.345e-05/0.01696, allocations: 43.39 kB / 341.6 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.01696, allocations: 0 / 341.6 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.01696, allocations: 4 kB / 341.6 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.01697, allocations: 3.984 kB / 341.6 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002526/0.01722, allocations: 308.5 kB / 341.9 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.01722, allocations: 96 / 341.9 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.455e-05/0.01728, allocations: 23.97 kB / 342 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001891/0.01747, allocations: 122.4 kB / 342.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.01748, allocations: 8 kB / 342.1 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00216/0.01964, allocations: 4.639 MB / 346.7 MB, free: 8.566 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.01964, allocations: 0 / 346.7 MB, free: 8.566 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003996/0.02004, allocations: 401.6 kB / 347.1 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.617e-05/0.02012, allocations: 51.73 kB / 347.2 MB, free: 8.098 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.02014, allocations: 8 kB / 347.2 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.02025, allocations: 16.27 kB / 347.2 MB, free: 8.074 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.547e-05/0.02032, allocations: 27.95 kB / 347.2 MB, free: 8.047 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.02033, allocations: 12 kB / 347.2 MB, free: 8.035 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001485/0.02048, allocations: 227 kB / 347.5 MB, free: 7.816 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02048, allocations: 0 / 347.5 MB, free: 7.816 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004682/0.02094, allocations: 119.8 kB / 347.6 MB, free: 7.699 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.0006624/0.02161, allocations: 0.9216 MB / 348.5 MB, free: 6.738 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006034/0.02221, allocations: 0.5666 MB / 349.1 MB, free: 6.133 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.02221, allocations: 0 / 349.1 MB, free: 6.133 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003561/0.02257, allocations: 483.7 kB / 349.5 MB, free: 5.621 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.02288, allocations: 53.47 kB / 349.6 MB, free: 5.57 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003047/0.02593, allocations: 3.166 MB / 352.8 MB, free: 2.281 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001417/0.02607, allocations: 190.7 kB / 352.9 MB, free: 2.074 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.665e-05/0.02617, allocations: 27.02 kB / 353 MB, free: 2.047 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.02627, allocations: 112.5 kB / 353.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of SimCode: time 1.192e-06/0.02628, allocations: 0 / 353.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02679/0.05307, allocations: 9.432 MB / 362.5 MB, free: 8.676 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.757/7.81, allocations: 7.922 kB / 362.5 MB, free: 8.668 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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: 9.544854424893856]