Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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 trunk/package.mo", uses=false) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001614/0.001614, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001534/0.001534, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.525/1.525, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 67.03 kB / 306.3 MB, free: 1.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1154, allocations: 50.53 MB / 356.8 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004444/0.1198, allocations: 2.761 MB / 359.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.1214, allocations: 0.7129 MB / 360.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002606/0.1217, allocations: 7.938 kB / 360.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002161/0.122, allocations: 31.77 kB / 360.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000279/0.1222, allocations: 63.47 kB / 360.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004148/0.1227, allocations: 103.8 kB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004468/0.1231, allocations: 334.6 kB / 360.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002204/0.1234, allocations: 89.06 kB / 360.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003672/0.1237, allocations: 123.5 kB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003541/0.1241, allocations: 159.4 kB / 361.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.674e-05/0.1242, allocations: 20 kB / 361.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001204/0.1243, allocations: 24 kB / 361.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.734e-05/0.1244, allocations: 63.69 kB / 361.3 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.1246, allocations: 139.3 kB / 361.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003719/0.125, allocations: 319.2 kB / 361.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.125, allocations: 0 / 361.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.125, allocations: 0 / 361.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.125, allocations: 0 / 361.7 MB, free: 9.543 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001768/0.1268, allocations: 0.6573 MB / 362.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.1268, allocations: 8.031 kB / 362.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002294/0.1271, allocations: 36.64 kB / 362.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003432/0.1274, allocations: 264.7 kB / 362.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.755e-05/0.1275, allocations: 12.81 kB / 362.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.225e-05/0.1275, allocations: 20.38 kB / 362.7 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007828/0.1283, allocations: 306.9 kB / 363 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.1283, allocations: 0 / 363 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.621e-05/0.1284, allocations: 8 kB / 363 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.1284, allocations: 4 kB / 363 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009124/0.1293, allocations: 269.5 kB / 363.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.1314, allocations: 1.066 MB / 364.3 MB, free: 6.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002122/0.1335, allocations: 434.2 kB / 364.8 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004453/0.134, allocations: 148.8 kB / 364.9 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.134, allocations: 4 kB / 364.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.1341, allocations: 30.56 kB / 365 MB, free: 6.102 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.994e-06/0.1341, allocations: 0 / 365 MB, free: 6.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.005516/0.1396, allocations: 1.03 MB / 366 MB, free: 5.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/0.1397, allocations: 55.41 kB / 366 MB, free: 4.977 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00031/0.14, allocations: 217 kB / 366.2 MB, free: 4.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.376e-05/0.14, allocations: 29.64 kB / 366.3 MB, free: 4.719 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.1402, allocations: 168 kB / 366.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.195e-05/0.1403, allocations: 47.36 kB / 366.5 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.1404, allocations: 41.69 kB / 366.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.1406, allocations: 326.8 kB / 366.8 MB, free: 4.129 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003741/0.141, allocations: 103.9 kB / 366.9 MB, free: 4.027 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003635/0.1413, allocations: 125.6 kB / 367.1 MB, free: 3.898 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007244/0.1421, allocations: 236.3 kB / 367.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1421, allocations: 0 / 367.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003202/0.1453, allocations: 0.6305 MB / 367.9 MB, free: 3.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/0.1453, allocations: 8 kB / 367.9 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.1454, allocations: 0 / 367.9 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008293/0.1462, allocations: 224.6 kB / 368.2 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.1464, allocations: 31.98 kB / 368.2 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00768/0.1541, allocations: 2.505 MB / 370.7 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003273/0.1544, allocations: 35.88 kB / 370.7 MB, free: 92 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.851e-05/0.1545, allocations: 12 kB / 370.7 MB, free: 80 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.2187/0.3732, allocations: 126.4 kB / 370.9 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.3734, allocations: 22.33 kB / 370.9 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/0.3735, allocations: 24.31 kB / 370.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.3735, allocations: 1.719 kB / 370.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3735, allocations: 2.594 kB / 370.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3736, allocations: 1.812 kB / 370.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007789/0.3743, allocations: 324.1 kB / 371.2 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.338e-06/0.3744, allocations: 0.5625 kB / 371.2 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002988/0.3747, allocations: 28.14 kB / 371.3 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.3758, allocations: 223.3 kB / 371.5 MB, free: 20.1 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.902e-05/0.3759, allocations: 4.266 kB / 371.5 MB, free: 20.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007334/0.3832, allocations: 2.489 MB / 374 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.3832, allocations: 0 / 374 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004277/0.3875, allocations: 0.8396 MB / 374.8 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.788e-05/0.3876, allocations: 96.86 kB / 374.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.08e-05/0.3877, allocations: 1.75 kB / 374.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003193/0.388, allocations: 37.02 kB / 374.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.962e-05/0.3881, allocations: 9.531 kB / 375 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/0.3881, allocations: 12.45 kB / 375 MB, free: 18.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000179/0.3883, allocations: 160.5 kB / 375.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3883, allocations: 0 / 375.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005551/0.3889, allocations: 78.45 kB / 375.2 MB, free: 18.46 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001979/0.3891, allocations: 104.3 kB / 375.3 MB, free: 18.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001825/0.3909, allocations: 449.8 kB / 375.7 MB, free: 18.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.3909, allocations: 1.375 kB / 375.7 MB, free: 18.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.3922, allocations: 319.5 kB / 376.1 MB, free: 18.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004798/0.3927, allocations: 36.33 kB / 376.1 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.3943, allocations: 0.6497 MB / 376.7 MB, free: 17.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.3946, allocations: 0.7404 MB / 377.5 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001117/0.3947, allocations: 18.45 kB / 377.5 MB, free: 16.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.111e-05/0.3948, allocations: 16.41 kB / 377.5 MB, free: 16.96 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3948, allocations: 3.938 kB / 377.5 MB, free: 16.96 MB / 302.1 MB Notification: Performance of Templates: time 0.01208/0.4069, allocations: 4.648 MB / 382.2 MB, free: 16.43 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches