Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",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.0007514/0.0007513, allocations: 92.61 kB / 17.3 MB, free: 6.387 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.0008386/0.0008387, allocations: 174.8 kB / 18.21 MB, free: 5.551 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.437/1.437, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004197/0.0004197, allocations: 12 kB / 281.5 MB, free: 3.332 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09012/0.09055, allocations: 47.58 MB / 329 MB, free: 3.688 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003416/0.094, allocations: 3.099 MB / 332.1 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.09522, allocations: 0.7802 MB / 332.9 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.09537, allocations: 11.94 kB / 332.9 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.09554, allocations: 47.61 kB / 333 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002152/0.09576, allocations: 119 kB / 333.1 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.09602, allocations: 91.89 kB / 333.2 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005216/0.09655, allocations: 485.7 kB / 333.7 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002154/0.09677, allocations: 111.9 kB / 333.8 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/0.09699, allocations: 171.2 kB / 333.9 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002035/0.0972, allocations: 187.1 kB / 334.1 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.648e-05/0.09725, allocations: 20 kB / 334.1 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.381e-05/0.09731, allocations: 24 kB / 334.2 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.158e-05/0.09738, allocations: 63.69 kB / 334.2 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001704/0.09756, allocations: 228.6 kB / 334.5 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003646/0.09793, allocations: 458.2 kB / 334.9 MB, free: 13.78 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.09794, allocations: 0 / 334.9 MB, free: 13.78 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.09795, allocations: 0 / 334.9 MB, free: 13.78 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.503e-06/0.09796, allocations: 0 / 334.9 MB, free: 13.78 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0009643/0.09893, allocations: 0.6585 MB / 335.6 MB, free: 13.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/0.09899, allocations: 12.03 kB / 335.6 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.315e-05/0.09909, allocations: 70.72 kB / 335.6 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.536e-05/0.09918, allocations: 48.38 kB / 335.7 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.0996, allocations: 311.2 kB / 336 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.845e-05/0.09964, allocations: 25.03 kB / 336 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.031e-05/0.0997, allocations: 32.38 kB / 336 MB, free: 12.54 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006764/0.1004, allocations: 366.8 kB / 336.4 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.1004, allocations: 0 / 336.4 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.069e-05/0.1005, allocations: 20 kB / 336.4 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.1005, allocations: 8 kB / 336.4 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005788/0.1011, allocations: 282.4 kB / 336.7 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.1031, allocations: 1.438 MB / 338.1 MB, free: 10.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004242/0.1035, allocations: 222.5 kB / 338.4 MB, free: 10.09 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002206/0.1037, allocations: 116.8 kB / 338.5 MB, free: 9.977 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.1038, allocations: 7.984 kB / 338.5 MB, free: 9.969 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.1038, allocations: 42.91 kB / 338.5 MB, free: 9.918 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.1038, allocations: 0 / 338.5 MB, free: 9.918 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001534/0.1054, allocations: 0.7213 MB / 339.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.1054, allocations: 59.41 kB / 339.3 MB, free: 9.055 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003107/0.1057, allocations: 308.5 kB / 339.6 MB, free: 8.746 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.1058, allocations: 29.7 kB / 339.6 MB, free: 8.711 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.1059, allocations: 208.2 kB / 339.8 MB, free: 8.5 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.817e-05/0.106, allocations: 82.83 kB / 339.9 MB, free: 8.418 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-05/0.106, allocations: 21.72 kB / 339.9 MB, free: 8.391 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1062, allocations: 346.8 kB / 340.3 MB, free: 8.043 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.1064, allocations: 87.91 kB / 340.4 MB, free: 7.957 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002832/0.1067, allocations: 132.2 kB / 340.5 MB, free: 7.812 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003993/0.1071, allocations: 208.1 kB / 340.7 MB, free: 7.594 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1071, allocations: 0 / 340.7 MB, free: 7.594 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007129/0.1078, allocations: 367.5 kB / 341.1 MB, free: 7.219 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.1078, allocations: 8 kB / 341.1 MB, free: 7.211 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.1078, allocations: 0 / 341.1 MB, free: 7.211 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004264/0.1083, allocations: 122.5 kB / 341.2 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001805/0.1085, allocations: 39.91 kB / 341.2 MB, free: 7.043 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003752/0.1122, allocations: 4.445 MB / 345.7 MB, free: 2.195 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.1125, allocations: 32.03 kB / 345.7 MB, free: 2.164 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/0.1125, allocations: 15.98 kB / 345.7 MB, free: 2.148 MB / 286.1 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.0002281/0.1128, allocations: 153.8 kB / 345.9 MB, free: 1.988 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.764e-05/0.1129, allocations: 31.62 kB / 345.9 MB, free: 1.957 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.879e-05/0.1129, allocations: 39.17 kB / 345.9 MB, free: 1.914 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.113, allocations: 4 kB / 345.9 MB, free: 1.91 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.113, allocations: 0 / 345.9 MB, free: 1.91 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.113, allocations: 0 / 345.9 MB, free: 1.91 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000434/0.1134, allocations: 377.2 kB / 346.3 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.1134, allocations: 4 kB / 346.3 MB, free: 1.488 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.1135, allocations: 20.27 kB / 346.3 MB, free: 1.469 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003422/0.1139, allocations: 118.5 kB / 346.4 MB, free: 1.344 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.1139, allocations: 4 kB / 346.5 MB, free: 1.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003422/0.1174, allocations: 4.457 MB / 350.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.1174, allocations: 4 kB / 350.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006712/0.1181, allocations: 422.2 kB / 351.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001479/0.1182, allocations: 120.7 kB / 351.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.1183, allocations: 4 kB / 351.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.1185, allocations: 23.98 kB / 351.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.1186, allocations: 35.89 kB / 351.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.1186, allocations: 4 kB / 351.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002709/0.1189, allocations: 219.1 kB / 351.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1189, allocations: 0 / 351.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007411/0.1197, allocations: 119.7 kB / 351.8 MB, free: 11.51 MB / 302.1 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.0009931/0.1207, allocations: 0.9448 MB / 352.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009357/0.1216, allocations: 0.5895 MB / 353.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1216, allocations: 0 / 353.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005362/0.1222, allocations: 488 kB / 353.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004785/0.1227, allocations: 61.62 kB / 353.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004486/0.1272, allocations: 3.344 MB / 357.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003871/0.1276, allocations: 0.795 MB / 358.1 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001376/0.1277, allocations: 26.97 kB / 358.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.1279, allocations: 107.4 kB / 358.2 MB, free: 4.898 MB / 302.1 MB Notification: Performance of SimCode: time 1.202e-06/0.1279, allocations: 0 / 358.2 MB, free: 4.898 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02027/0.1482, allocations: 7.744 MB / 365.9 MB, free: 13.15 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/0.1484, allocations: 255.2 kB / 366.2 MB, free: 12.88 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.912/2.061, allocations: 0 / 366.2 MB, free: 12.88 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches