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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001652/0.001652, allocations: 201.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.554/1.554, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008084/0.0008085, allocations: 97.19 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.763e-05/2.785e-05, allocations: 4 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1247, allocations: 51.48 MB / 395.2 MB, free: 4.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3286/0.4534, allocations: 78.83 MB / 474 MB, free: 13.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000176/0.4536, allocations: 73.94 kB / 474.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0157/0.4693, allocations: 6.53 MB / 480.6 MB, free: 8.895 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4693, allocations: 0 / 480.6 MB, free: 8.895 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.177e-05/0.4694, allocations: 8 kB / 480.6 MB, free: 8.887 MB / 346.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.0008674/0.4702, allocations: 0.6135 MB / 481.2 MB, free: 8.254 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.4703, allocations: 8.031 kB / 481.2 MB, free: 8.246 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003507/0.4706, allocations: 83.41 kB / 481.3 MB, free: 8.164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003263/0.471, allocations: 303.8 kB / 481.6 MB, free: 7.855 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.471, allocations: 15.61 kB / 481.6 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.471, allocations: 20 kB / 481.6 MB, free: 7.824 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003628/0.4714, allocations: 209.6 kB / 481.8 MB, free: 7.699 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004212/0.4718, allocations: 287.5 kB / 482.1 MB, free: 7.469 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.4719, allocations: 0 / 482.1 MB, free: 7.469 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.4719, allocations: 0 / 482.1 MB, free: 7.469 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.4719, allocations: 12 kB / 482.1 MB, free: 7.457 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001578/0.4735, allocations: 1.369 MB / 483.5 MB, free: 6.211 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002716/0.4738, allocations: 199.2 kB / 483.7 MB, free: 6.078 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.4739, allocations: 83.86 kB / 483.8 MB, free: 6.027 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.4739, allocations: 4 kB / 483.8 MB, free: 6.023 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.474, allocations: 33.56 kB / 483.8 MB, free: 5.984 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.474, allocations: 4 kB / 483.8 MB, free: 5.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.000402/0.4744, allocations: 247.9 kB / 484.1 MB, free: 5.781 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.805e-05/0.4744, allocations: 51.41 kB / 484.1 MB, free: 5.719 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.4746, allocations: 247.2 kB / 484.4 MB, free: 5.512 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.4746, allocations: 25.7 kB / 484.4 MB, free: 5.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.49e-05/0.4747, allocations: 206.9 kB / 484.6 MB, free: 5.316 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.935e-05/0.4748, allocations: 68.36 kB / 484.6 MB, free: 5.258 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.207e-05/0.4748, allocations: 0 / 484.6 MB, free: 5.258 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.805e-05/0.4748, allocations: 343.9 kB / 485 MB, free: 4.926 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.075e-05/0.4749, allocations: 55.38 kB / 485 MB, free: 4.895 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.4751, allocations: 104.8 kB / 485.1 MB, free: 4.809 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001045/0.4752, allocations: 66.98 kB / 485.2 MB, free: 4.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4752, allocations: 0 / 485.2 MB, free: 4.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004843/0.4757, allocations: 308.3 kB / 485.5 MB, free: 4.516 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.4757, allocations: 8 kB / 485.5 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.4757, allocations: 0 / 485.5 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003396/0.476, allocations: 106.6 kB / 485.6 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.4762, allocations: 35.97 kB / 485.7 MB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002375/0.4786, allocations: 4.275 MB / 489.9 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/0.4788, allocations: 23.83 kB / 490 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.804e-05/0.4788, allocations: 8 kB / 490 MB, free: 8 kB / 346.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001314/0.479, allocations: 116.2 kB / 490.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.163e-05/0.4791, allocations: 31.62 kB / 490.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.479e-05/0.4791, allocations: 32.66 kB / 490.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.4791, allocations: 4 kB / 490.1 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.4792, allocations: 0 / 490.1 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.4792, allocations: 3.984 kB / 490.1 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003718/0.4795, allocations: 318.2 kB / 490.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.4796, allocations: 0 / 490.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.4797, allocations: 25.86 kB / 490.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002913/0.48, allocations: 121.8 kB / 490.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.48, allocations: 0 / 490.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002992/0.483, allocations: 4.272 MB / 494.9 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.483, allocations: 0 / 494.9 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003941/0.4834, allocations: 343.7 kB / 495.2 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.4836, allocations: 119 kB / 495.3 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.537e-05/0.4836, allocations: 4.062 kB / 495.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.4838, allocations: 19.98 kB / 495.3 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.366e-05/0.4839, allocations: 34.66 kB / 495.4 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.4839, allocations: 4 kB / 495.4 MB, free: 10.58 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001619/0.4841, allocations: 190 kB / 495.6 MB, free: 10.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4841, allocations: 0 / 495.6 MB, free: 10.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006325/0.4847, allocations: 107.7 kB / 495.7 MB, free: 10.33 MB / 362.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001382/0.4849, allocations: 107.2 kB / 495.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006138/0.4855, allocations: 0.5046 MB / 496.3 MB, free: 9.754 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.4855, allocations: 4.062 kB / 496.3 MB, free: 9.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003658/0.4859, allocations: 436.2 kB / 496.7 MB, free: 9.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.4862, allocations: 35.77 kB / 496.7 MB, free: 9.316 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007892/0.487, allocations: 392.8 kB / 497.1 MB, free: 8.953 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.4874, allocations: 0.8023 MB / 497.9 MB, free: 8.125 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.4875, allocations: 26.06 kB / 498 MB, free: 8.098 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.549e-05/0.4875, allocations: 19.42 kB / 498 MB, free: 8.078 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4875, allocations: 0 / 498 MB, free: 8.078 MB / 362.7 MB Notification: Performance of Templates: time 0.007979/0.4955, allocations: 4.142 MB / 0.4904 GB, free: 4.043 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches