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: 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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001299/0.001305, allocations: 110.5 kB / 17.73 MB, free: 5.316 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.001413/0.001413, allocations: 187 kB / 18.67 MB, free: 4.387 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.526/1.526, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.00106/0.00106, allocations: 47.94 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09769/0.09876, allocations: 46.61 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004447/0.1032, allocations: 3.446 MB / 378.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.1046, allocations: 0.8069 MB / 379.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.1048, allocations: 7.938 kB / 379.4 MB, free: 288 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000189/0.105, allocations: 63.36 kB / 379.5 MB, free: 224 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00022/0.1053, allocations: 130.8 kB / 379.6 MB, free: 92 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2506/0.3558, allocations: 108.3 kB / 379.7 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001254/0.3571, allocations: 0.502 MB / 380.2 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004187/0.3576, allocations: 137.1 kB / 380.3 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005414/0.3581, allocations: 189.6 kB / 380.5 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004131/0.3585, allocations: 205.8 kB / 380.7 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.88e-05/0.3586, allocations: 39.25 kB / 380.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001227/0.3588, allocations: 39.88 kB / 380.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.3589, allocations: 92.2 kB / 380.9 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003125/0.3592, allocations: 220.6 kB / 381.1 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.3603, allocations: 495.6 kB / 381.6 MB, free: 9.516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.3603, allocations: 0 / 381.6 MB, free: 9.516 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.773e-06/0.3603, allocations: 0 / 381.6 MB, free: 9.516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.542e-05/0.3604, allocations: 6.719 kB / 381.6 MB, free: 9.516 MB / 318.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.001755/0.3621, allocations: 0.7293 MB / 382.3 MB, free: 9.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.5e-05/0.3622, allocations: 14.33 kB / 382.3 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/0.3624, allocations: 50.53 kB / 382.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006118/0.363, allocations: 316.3 kB / 382.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.822e-05/0.3631, allocations: 24.5 kB / 382.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.714e-05/0.3631, allocations: 32.92 kB / 382.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007176/0.3639, allocations: 359.1 kB / 383.1 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.3639, allocations: 8.406 kB / 383.1 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.206e-05/0.3639, allocations: 15.28 kB / 383.1 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.364, allocations: 8.469 kB / 383.1 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000565/0.3645, allocations: 270.5 kB / 383.4 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00209/0.3666, allocations: 1.406 MB / 384.8 MB, free: 7.871 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004718/0.3671, allocations: 223.7 kB / 385 MB, free: 7.844 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.3674, allocations: 114.8 kB / 385.1 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.3674, allocations: 6.703 kB / 385.1 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.3674, allocations: 34.09 kB / 385.2 MB, free: 7.773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.904e-06/0.3674, allocations: 0 / 385.2 MB, free: 7.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001479/0.3689, allocations: 0.7024 MB / 385.9 MB, free: 7.305 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.369, allocations: 54.66 kB / 385.9 MB, free: 7.242 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003395/0.3693, allocations: 306 kB / 386.2 MB, free: 7.078 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.3693, allocations: 31.05 kB / 386.3 MB, free: 7.043 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.3695, allocations: 215.5 kB / 386.5 MB, free: 6.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.406e-05/0.3695, allocations: 71.17 kB / 386.5 MB, free: 6.809 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.96e-05/0.3696, allocations: 55.66 kB / 386.6 MB, free: 6.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.288e-05/0.3697, allocations: 339.1 kB / 386.9 MB, free: 6.445 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.3699, allocations: 80.53 kB / 387 MB, free: 6.418 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002167/0.3701, allocations: 120.3 kB / 387.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003814/0.3705, allocations: 205.1 kB / 387.3 MB, free: 6.242 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.3705, allocations: 1.438 kB / 387.3 MB, free: 6.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007501/0.3713, allocations: 358.6 kB / 387.7 MB, free: 6.082 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.3713, allocations: 5.438 kB / 387.7 MB, free: 6.082 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.3713, allocations: 1.219 kB / 387.7 MB, free: 6.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004836/0.3718, allocations: 116 kB / 387.8 MB, free: 6.031 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.372, allocations: 36.36 kB / 387.8 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002943/0.375, allocations: 4.969 MB / 392.8 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.3752, allocations: 34.36 kB / 392.8 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.3753, allocations: 7.812 kB / 392.8 MB, free: 1.176 MB / 318.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.0001609/0.3754, allocations: 142.3 kB / 393 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.39e-05/0.3755, allocations: 40.09 kB / 393 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.101e-05/0.3756, allocations: 46.39 kB / 393.1 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.3756, allocations: 7.328 kB / 393.1 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3756, allocations: 1.219 kB / 393.1 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3756, allocations: 0.8906 kB / 393.1 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004122/0.376, allocations: 374.5 kB / 393.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.376, allocations: 4.453 kB / 393.4 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.3761, allocations: 20.89 kB / 393.5 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003198/0.3765, allocations: 113.8 kB / 393.6 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.028e-05/0.3765, allocations: 10.28 kB / 393.6 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003933/0.3804, allocations: 4.965 MB / 398.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.3805, allocations: 0 / 398.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000707/0.3812, allocations: 409.7 kB / 398.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001617/0.3814, allocations: 132.5 kB / 399.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.562e-05/0.3814, allocations: 1.844 kB / 399.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.3816, allocations: 21.09 kB / 399.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.3818, allocations: 30.06 kB / 399.1 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.961e-05/0.3818, allocations: 5.625 kB / 399.1 MB, free: 11.44 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002773/0.3821, allocations: 221.8 kB / 399.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3821, allocations: 1.531 kB / 399.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007407/0.3828, allocations: 114.2 kB / 399.5 MB, free: 11.29 MB / 334.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.0001617/0.383, allocations: 106.2 kB / 399.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001023/0.384, allocations: 0.5779 MB / 400.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.384, allocations: 0 / 400.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006136/0.3847, allocations: 481.2 kB / 400.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004482/0.3851, allocations: 62.77 kB / 400.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.3864, allocations: 0.6469 MB / 401.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.3868, allocations: 0.7939 MB / 402.1 MB, free: 9.254 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000107/0.3869, allocations: 23.03 kB / 402.1 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.879e-05/0.387, allocations: 24.23 kB / 402.2 MB, free: 9.234 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.387, allocations: 0 / 402.2 MB, free: 9.234 MB / 334.1 MB Notification: Performance of Templates: time 0.01226/0.3993, allocations: 5.447 MB / 407.6 MB, free: 8.094 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches