Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001388/0.001388, allocations: 121.7 kB / 17.83 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 205.8 kB / 18.79 MB, free: 4.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.61/1.61, allocations: 230.4 MB / 250 MB, free: 8.988 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 63.83 kB / 367.4 MB, free: 6.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3671, allocations: 53.31 MB / 420.7 MB, free: 8.297 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005075/0.3722, allocations: 3.528 MB / 424.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.3739, allocations: 0.8451 MB / 425 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002181/0.3742, allocations: 8 kB / 425 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002588/0.3744, allocations: 71.3 kB / 425.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003039/0.3747, allocations: 130.8 kB / 425.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004743/0.3752, allocations: 139.8 kB / 425.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006078/0.3758, allocations: 0.5055 MB / 425.9 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.3761, allocations: 99.27 kB / 426 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003665/0.3764, allocations: 195.2 kB / 426.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002792/0.3767, allocations: 207.1 kB / 426.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.508e-05/0.3768, allocations: 40 kB / 426.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.3769, allocations: 47.98 kB / 426.5 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.705e-05/0.377, allocations: 91.61 kB / 426.6 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000227/0.3772, allocations: 222.9 kB / 426.8 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006798/0.3779, allocations: 0.4977 MB / 427.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3779, allocations: 4 kB / 427.3 MB, free: 1.664 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.3779, allocations: 3.938 kB / 427.3 MB, free: 1.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.3779, allocations: 0 / 427.3 MB, free: 1.66 MB / 334.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.001399/0.3793, allocations: 0.7427 MB / 428 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.3793, allocations: 8.031 kB / 428 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003956/0.3797, allocations: 76.58 kB / 428.1 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005513/0.3803, allocations: 323.5 kB / 428.4 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.084e-05/0.3803, allocations: 29.03 kB / 428.4 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.3804, allocations: 32.38 kB / 428.5 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006776/0.381, allocations: 359 kB / 428.8 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.3811, allocations: 0 / 428.8 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.38e-05/0.3811, allocations: 12.08 kB / 428.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.47e-05/0.3811, allocations: 8 kB / 428.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005968/0.3817, allocations: 274.4 kB / 429.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002125/0.3839, allocations: 1.415 MB / 430.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004333/0.3843, allocations: 202.5 kB / 430.7 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.3845, allocations: 101.2 kB / 430.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.3845, allocations: 3.938 kB / 430.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.209e-05/0.3846, allocations: 42.42 kB / 430.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.3846, allocations: 0 / 430.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001676/0.3863, allocations: 0.7017 MB / 431.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.3863, allocations: 55.41 kB / 431.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003889/0.3867, allocations: 312.5 kB / 431.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.376e-05/0.3867, allocations: 33.7 kB / 432 MB, free: 12.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002096/0.3869, allocations: 216.4 kB / 432.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.372e-05/0.387, allocations: 71.39 kB / 432.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.3871, allocations: 49.66 kB / 432.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.3873, allocations: 342.8 kB / 432.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002082/0.3875, allocations: 87.89 kB / 432.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002369/0.3878, allocations: 120.2 kB / 432.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000428/0.3882, allocations: 204.1 kB / 433 MB, free: 11.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.3882, allocations: 0 / 433 MB, free: 11.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007913/0.389, allocations: 343.7 kB / 433.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.389, allocations: 11.16 kB / 433.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.389, allocations: 7.984 kB / 433.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005361/0.3896, allocations: 126.4 kB / 433.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001921/0.3897, allocations: 31.92 kB / 433.5 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005534/0.3953, allocations: 4.972 MB / 438.5 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003112/0.3956, allocations: 31.8 kB / 438.5 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.689e-05/0.3956, allocations: 8.062 kB / 438.6 MB, free: 5.57 MB / 350.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.0002579/0.3959, allocations: 153.8 kB / 438.7 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.046e-05/0.396, allocations: 39.7 kB / 438.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.535e-05/0.396, allocations: 35.17 kB / 438.8 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.396, allocations: 4 kB / 438.8 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.396, allocations: 0 / 438.8 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.396, allocations: 0 / 438.8 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005245/0.3966, allocations: 381.3 kB / 439.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.3966, allocations: 4.125 kB / 439.2 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.3967, allocations: 23.98 kB / 439.2 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000404/0.3971, allocations: 114.5 kB / 439.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.3971, allocations: 4 kB / 439.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004791/0.4019, allocations: 4.967 MB / 444.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.4019, allocations: 7.922 kB / 444.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008934/0.4028, allocations: 397.7 kB / 444.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/0.403, allocations: 132.8 kB / 444.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/0.403, allocations: 0 / 444.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.4032, allocations: 28.16 kB / 444.8 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.4034, allocations: 27.97 kB / 444.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.282e-05/0.4034, allocations: 11.94 kB / 444.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002733/0.4037, allocations: 219.1 kB / 445.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4037, allocations: 4 kB / 445.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007201/0.4044, allocations: 111.8 kB / 445.2 MB, free: 14.41 MB / 366.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.0001959/0.4046, allocations: 111.2 kB / 445.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.4056, allocations: 0.5572 MB / 445.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.4056, allocations: 0 / 445.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005864/0.4062, allocations: 479.9 kB / 446.3 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004366/0.4067, allocations: 61.97 kB / 446.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.4081, allocations: 0.6333 MB / 447 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.4087, allocations: 0.7992 MB / 447.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001349/0.4088, allocations: 26.97 kB / 447.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.936e-05/0.4089, allocations: 19.44 kB / 447.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4089, allocations: 0 / 447.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of Templates: time 0.01228/0.4212, allocations: 5.53 MB / 453.4 MB, free: 6.121 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches