Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 111.5 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 208.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.532/1.532, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 47.92 kB / 374.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1121, allocations: 53.34 MB / 427.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004829/0.117, allocations: 3.532 MB / 431 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2077/0.3247, allocations: 0.8379 MB / 431.9 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004645/0.3252, allocations: 9.219 kB / 431.9 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002665/0.3254, allocations: 65.59 kB / 431.9 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000327/0.3258, allocations: 138.1 kB / 432.1 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004572/0.3262, allocations: 138.2 kB / 432.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006074/0.3268, allocations: 0.5069 MB / 432.7 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002372/0.3271, allocations: 93.8 kB / 432.8 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003339/0.3274, allocations: 206.4 kB / 433 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000237/0.3276, allocations: 211.2 kB / 433.2 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.854e-05/0.3277, allocations: 39.97 kB / 433.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.3278, allocations: 41.53 kB / 433.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.2e-05/0.3279, allocations: 93.62 kB / 433.4 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.3281, allocations: 225.3 kB / 433.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004517/0.3285, allocations: 496.9 kB / 434.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3285, allocations: 0 / 434.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3285, allocations: 4.469 kB / 434.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.397e-06/0.3285, allocations: 2.219 kB / 434.1 MB, free: 8.297 MB / 350.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.001062/0.3296, allocations: 0.7407 MB / 434.8 MB, free: 7.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.3296, allocations: 8.938 kB / 434.9 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000342/0.33, allocations: 78.55 kB / 434.9 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004418/0.3304, allocations: 331 kB / 435.3 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.3305, allocations: 30.47 kB / 435.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.3305, allocations: 33.41 kB / 435.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006138/0.3311, allocations: 351.8 kB / 435.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.3311, allocations: 3.938 kB / 435.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/0.3312, allocations: 14.42 kB / 435.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.3312, allocations: 7.438 kB / 435.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005607/0.3317, allocations: 275 kB / 436 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.3336, allocations: 1.406 MB / 437.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004259/0.3341, allocations: 203.6 kB / 437.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/0.3343, allocations: 98.2 kB / 437.7 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.3343, allocations: 3.812 kB / 437.7 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.3343, allocations: 40.25 kB / 437.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.575e-06/0.3343, allocations: 5.125 kB / 437.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001553/0.3359, allocations: 0.6942 MB / 438.4 MB, free: 5.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.3359, allocations: 54.75 kB / 438.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/0.3362, allocations: 316.9 kB / 438.8 MB, free: 5.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.3363, allocations: 30.98 kB / 438.8 MB, free: 5.555 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.3364, allocations: 220.7 kB / 439 MB, free: 5.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.331e-05/0.3364, allocations: 83.12 kB / 439.1 MB, free: 5.309 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.714e-05/0.3365, allocations: 51.02 kB / 439.1 MB, free: 5.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.383e-05/0.3366, allocations: 343.3 kB / 439.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.3368, allocations: 78 kB / 439.5 MB, free: 4.922 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002041/0.337, allocations: 131 kB / 439.7 MB, free: 4.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/0.3374, allocations: 198.2 kB / 439.9 MB, free: 4.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3374, allocations: 0 / 439.9 MB, free: 4.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007288/0.3381, allocations: 354.7 kB / 440.2 MB, free: 4.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.3381, allocations: 10.62 kB / 440.2 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.3381, allocations: 1 kB / 440.2 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004431/0.3386, allocations: 124.9 kB / 440.3 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001831/0.3387, allocations: 28.48 kB / 440.4 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003122/0.3419, allocations: 4.967 MB / 445.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002896/0.3422, allocations: 26.97 kB / 445.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.3422, allocations: 7.266 kB / 445.4 MB, free: 15.63 MB / 366.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.0002233/0.3424, allocations: 155.2 kB / 445.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.932e-05/0.3425, allocations: 36.09 kB / 445.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.397e-05/0.3426, allocations: 40.56 kB / 445.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.3426, allocations: 2.281 kB / 445.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3426, allocations: 1.062 kB / 445.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.3426, allocations: 2.391 kB / 445.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005256/0.3431, allocations: 372.8 kB / 446 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.3431, allocations: 3.938 kB / 446 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.3432, allocations: 30.25 kB / 446 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000391/0.3436, allocations: 112.9 kB / 446.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.3436, allocations: 9.609 kB / 446.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004393/0.348, allocations: 4.972 MB / 451.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.348, allocations: 1.562 kB / 451.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007548/0.3488, allocations: 402.7 kB / 451.5 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/0.349, allocations: 126 kB / 451.6 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.909e-05/0.349, allocations: 5.734 kB / 451.6 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.3492, allocations: 20 kB / 451.6 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.3494, allocations: 28.2 kB / 451.7 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.3494, allocations: 5.484 kB / 451.7 MB, free: 9.863 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002916/0.3497, allocations: 229 kB / 451.9 MB, free: 9.734 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3497, allocations: 0 / 451.9 MB, free: 9.734 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007253/0.3504, allocations: 118.8 kB / 452 MB, free: 9.707 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.0001435/0.3505, allocations: 108.1 kB / 452.1 MB, free: 9.613 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.3516, allocations: 0.566 MB / 452.7 MB, free: 9.188 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3516, allocations: 0 / 452.7 MB, free: 9.188 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005946/0.3522, allocations: 480.5 kB / 453.2 MB, free: 8.793 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004522/0.3526, allocations: 57.08 kB / 453.2 MB, free: 8.773 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.354, allocations: 0.6691 MB / 453.9 MB, free: 8.363 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004599/0.3545, allocations: 0.795 MB / 454.7 MB, free: 7.664 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.285e-05/0.3545, allocations: 26.11 kB / 454.7 MB, free: 7.652 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3545, allocations: 3.938 kB / 454.7 MB, free: 7.648 MB / 366.1 MB Notification: Performance of Templates: time 0.01318/0.3677, allocations: 8.48 MB / 463.2 MB, free: 4.98 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.350096003996441]