Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001149/0.001149, allocations: 175.3 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.355/1.355, allocations: 205.4 MB / 222.9 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007271/0.000727, allocations: 94.34 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003188/0.0003188, allocations: 8 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2638, allocations: 47.57 MB / 375.1 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003355/0.2672, allocations: 2.954 MB / 378 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001494/0.2687, allocations: 0.7633 MB / 378.8 MB, free: 42.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003569/0.2691, allocations: 5.656 kB / 378.8 MB, free: 42.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000179/0.2693, allocations: 50.03 kB / 378.9 MB, free: 42.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002439/0.2696, allocations: 117.4 kB / 379 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.2698, allocations: 73.09 kB / 379 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004583/0.2703, allocations: 473.6 kB / 379.5 MB, free: 41.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.2706, allocations: 114.7 kB / 379.6 MB, free: 41.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.2708, allocations: 155.6 kB / 379.8 MB, free: 41.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002012/0.271, allocations: 183.9 kB / 380 MB, free: 41.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.409e-05/0.2711, allocations: 19.88 kB / 380 MB, free: 41.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.025e-05/0.2711, allocations: 20.88 kB / 380 MB, free: 41.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.063e-05/0.2712, allocations: 65.94 kB / 380.1 MB, free: 41.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.2714, allocations: 221.8 kB / 380.3 MB, free: 41.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002635/0.2716, allocations: 350.2 kB / 380.6 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.2717, allocations: 4 kB / 380.6 MB, free: 41.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2717, allocations: 0 / 380.6 MB, free: 41.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.2717, allocations: 1.062 kB / 380.6 MB, free: 41.19 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.0009318/0.2726, allocations: 0.6593 MB / 381.3 MB, free: 40.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.2727, allocations: 10 kB / 381.3 MB, free: 40.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.168e-05/0.2728, allocations: 48.34 kB / 381.3 MB, free: 40.6 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003158/0.2731, allocations: 311.4 kB / 381.6 MB, free: 40.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.2731, allocations: 22.72 kB / 381.7 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.372e-05/0.2732, allocations: 36.78 kB / 381.7 MB, free: 40.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005925/0.2738, allocations: 363.5 kB / 382.1 MB, free: 40.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.2738, allocations: 1.312 kB / 382.1 MB, free: 40.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.819e-05/0.2738, allocations: 14.91 kB / 382.1 MB, free: 40.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.2739, allocations: 12.53 kB / 382.1 MB, free: 40.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005543/0.2744, allocations: 282.4 kB / 382.4 MB, free: 39.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.2761, allocations: 1.432 MB / 383.8 MB, free: 38.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004044/0.2766, allocations: 222.8 kB / 384 MB, free: 38.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/0.2768, allocations: 112.7 kB / 384.1 MB, free: 38.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.744e-05/0.2768, allocations: 6.438 kB / 384.1 MB, free: 38.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.2769, allocations: 41.11 kB / 384.2 MB, free: 38.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.793e-06/0.2769, allocations: 0 / 384.2 MB, free: 38.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.00148/0.2783, allocations: 0.7171 MB / 384.9 MB, free: 37.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/0.2784, allocations: 61.84 kB / 384.9 MB, free: 37.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003117/0.2787, allocations: 299.1 kB / 385.2 MB, free: 37.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.2787, allocations: 30.64 kB / 385.3 MB, free: 37.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.2788, allocations: 215.4 kB / 385.5 MB, free: 37.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.782e-05/0.2789, allocations: 76.84 kB / 385.6 MB, free: 37.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.2789, allocations: 1.312 kB / 385.6 MB, free: 37.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.828e-05/0.279, allocations: 341.2 kB / 385.9 MB, free: 37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000194/0.2792, allocations: 87.08 kB / 386 MB, free: 36.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.2794, allocations: 127.5 kB / 386.1 MB, free: 36.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003963/0.2798, allocations: 211 kB / 386.3 MB, free: 36.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2799, allocations: 0 / 386.3 MB, free: 36.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007536/0.2806, allocations: 376.5 kB / 386.7 MB, free: 36.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.2807, allocations: 9.469 kB / 386.7 MB, free: 36.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.2807, allocations: 4.766 kB / 386.7 MB, free: 36.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003989/0.2811, allocations: 118 kB / 386.8 MB, free: 36.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.2813, allocations: 37.7 kB / 386.8 MB, free: 36.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002569/0.2838, allocations: 4.455 MB / 391.3 MB, free: 31.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002684/0.2841, allocations: 24.12 kB / 391.3 MB, free: 31.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.031e-05/0.2842, allocations: 15.92 kB / 391.3 MB, free: 31.65 MB / 298.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 (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.0001639/0.2843, allocations: 141.9 kB / 391.5 MB, free: 31.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.239e-05/0.2844, allocations: 43.56 kB / 391.5 MB, free: 31.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.488e-05/0.2845, allocations: 35.17 kB / 391.5 MB, free: 31.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.2845, allocations: 4 kB / 391.5 MB, free: 31.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2845, allocations: 0 / 391.5 MB, free: 31.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2845, allocations: 0 / 391.5 MB, free: 31.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003312/0.2848, allocations: 381.2 kB / 391.9 MB, free: 30.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2848, allocations: 0 / 391.9 MB, free: 30.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.2849, allocations: 31.92 kB / 392 MB, free: 30.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002796/0.2852, allocations: 110.5 kB / 392.1 MB, free: 30.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.2853, allocations: 4 kB / 392.1 MB, free: 30.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002344/0.2876, allocations: 4.445 MB / 396.5 MB, free: 26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2876, allocations: 0 / 396.5 MB, free: 26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005528/0.2882, allocations: 418.2 kB / 396.9 MB, free: 25.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.2883, allocations: 136.5 kB / 397 MB, free: 25.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.259e-05/0.2883, allocations: 4 kB / 397.1 MB, free: 25.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/0.2886, allocations: 27.98 kB / 397.1 MB, free: 25.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.412e-05/0.2886, allocations: 27.95 kB / 397.1 MB, free: 25.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.2887, allocations: 7.938 kB / 397.1 MB, free: 25.35 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001742/0.2889, allocations: 215.1 kB / 397.3 MB, free: 25.14 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2889, allocations: 0 / 397.3 MB, free: 25.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006122/0.2895, allocations: 115.8 kB / 397.4 MB, free: 25.02 MB / 298.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 (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.0001176/0.2896, allocations: 110.9 kB / 397.5 MB, free: 24.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007448/0.2903, allocations: 0.5739 MB / 398.1 MB, free: 24.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.2904, allocations: 4 kB / 398.1 MB, free: 24.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003986/0.2908, allocations: 492.5 kB / 398.6 MB, free: 23.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004753/0.2913, allocations: 56.95 kB / 398.7 MB, free: 23.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.2923, allocations: 0.7903 MB / 399.5 MB, free: 22.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.2925, allocations: 0.7935 MB / 400.2 MB, free: 22.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.161e-05/0.2926, allocations: 23.44 kB / 400.3 MB, free: 22.05 MB / 298.7 MB Notification: Performance of SimCode: time 3.41e-07/0.2926, allocations: 0 / 400.3 MB, free: 22.05 MB / 298.7 MB Notification: Performance of Templates: time 0.007716/0.3003, allocations: 8.244 MB / 408.5 MB, free: 13.81 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches