Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.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.001355/0.001355, allocations: 85.08 kB / 23 MB, free: 1.504 MB / 18.57 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.0012/0.0012, allocations: 173.1 kB / 26.39 MB, free: 8 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9217/0.9217, allocations: 158.6 MB / 188.3 MB, free: 2.82 MB / 170.7 MB " [Timeout remaining time 179] 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.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.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.203e-06/1.203e-06, allocations: 3.938 kB / 252.2 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.653e-05/1.773e-05, allocations: 2.312 kB / 252.2 MB, free: 7.258 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.009133/0.009151, allocations: 12.57 MB / 264.8 MB, free: 10.62 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01718/0.02633, allocations: 18.1 MB / 282.9 MB, free: 8.453 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001652/0.02798, allocations: 197.8 kB / 283.1 MB, free: 8.258 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001939/0.02992, allocations: 1.013 MB / 284.1 MB, free: 7.238 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005384/0.0353, allocations: 2.377 MB / 286.5 MB, free: 4.844 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003658/0.03896, allocations: 1.394 MB / 287.9 MB, free: 3.438 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006751/0.04571, allocations: 6.613 MB / 294.5 MB, free: 12.8 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005181/0.04623, allocations: 249 kB / 294.8 MB, free: 12.53 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002961/0.04919, allocations: 2.831 MB / 297.6 MB, free: 9.691 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008163/0.05001, allocations: 0.7826 MB / 298.4 MB, free: 8.906 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.05016, allocations: 72 kB / 298.4 MB, free: 8.836 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002131/0.05229, allocations: 1.085 MB / 299.5 MB, free: 7.75 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001972/0.05249, allocations: 333.6 kB / 299.8 MB, free: 7.422 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006058/0.05309, allocations: 0.7282 MB / 300.6 MB, free: 6.691 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002725/0.05582, allocations: 2.774 MB / 303.4 MB, free: 3.906 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.05582, allocations: 4 kB / 303.4 MB, free: 3.902 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.05582, allocations: 0 / 303.4 MB, free: 3.902 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.127e-05/0.0559, allocations: 0 / 303.4 MB, free: 3.902 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.003661/0.05956, allocations: 3.858 MB / 307.2 MB, free: 15.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.0596, allocations: 19.97 kB / 307.2 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003998/0.06, allocations: 441.5 kB / 307.7 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/0.06234, allocations: 2.651 MB / 310.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.022e-05/0.06237, allocations: 37 kB / 310.4 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.318e-05/0.06246, allocations: 51.95 kB / 310.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006605/0.06312, allocations: 0.4967 MB / 310.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.06313, allocations: 0 / 310.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.026e-05/0.06318, allocations: 20 kB / 310.9 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.0632, allocations: 23.98 kB / 310.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007175/0.06392, allocations: 419.7 kB / 311.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00277/0.06669, allocations: 2.238 MB / 313.6 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005149/0.0672, allocations: 410.6 kB / 314 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005448/0.06775, allocations: 0.5662 MB / 314.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0162/0.08395, allocations: 15.15 MB / 329.7 MB, free: 8.945 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004437/0.08439, allocations: 407.7 kB / 330.1 MB, free: 8.535 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.425e-06/0.08439, allocations: 0 / 330.1 MB, free: 8.535 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003912/0.08831, allocations: 2.477 MB / 332.6 MB, free: 5.984 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.818e-05/0.08834, allocations: 68.33 kB / 332.6 MB, free: 5.906 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00186/0.09021, allocations: 2.88 MB / 335.5 MB, free: 3.012 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.744e-05/0.09026, allocations: 49.69 kB / 335.6 MB, free: 2.957 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00088/0.09114, allocations: 1.501 MB / 337.1 MB, free: 1.449 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002044/0.09135, allocations: 360.9 kB / 337.4 MB, free: 1.094 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002307/0.09158, allocations: 240 kB / 337.7 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.09171, allocations: 0.5315 MB / 338.2 MB, free: 320 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/0.09192, allocations: 154.2 kB / 338.3 MB, free: 164 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000314/0.09223, allocations: 418 kB / 338.8 MB, free: 15.66 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005589/0.09279, allocations: 0.6331 MB / 339.4 MB, free: 14.94 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.09279, allocations: 0 / 339.4 MB, free: 14.94 MB / 330.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001564/0.09436, allocations: 1.269 MB / 340.7 MB, free: 13.62 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.09438, allocations: 11.94 kB / 340.7 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001046/0.09448, allocations: 120 kB / 340.8 MB, free: 13.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003847/0.09487, allocations: 256.8 kB / 341 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000399/0.09527, allocations: 175.8 kB / 341.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1126/0.2079, allocations: 17.34 MB / 358.5 MB, free: 81.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009265/0.2088, allocations: 59.8 kB / 358.6 MB, free: 81.15 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.2089, allocations: 54.78 kB / 358.7 MB, free: 81.15 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003748/0.2093, allocations: 216.9 kB / 358.9 MB, free: 80.99 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000341/0.2097, allocations: 419.7 kB / 359.3 MB, free: 80.99 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001717/0.2114, allocations: 1.505 MB / 360.8 MB, free: 80.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2114, allocations: 12.91 kB / 360.8 MB, free: 80.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2114, allocations: 7.25 kB / 360.8 MB, free: 80.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.2114, allocations: 3.562 kB / 360.8 MB, free: 80.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009047/0.2123, allocations: 1.078 MB / 361.9 MB, free: 80.63 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-05/0.2124, allocations: 120.3 kB / 362 MB, free: 80.63 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002816/0.2127, allocations: 107.1 kB / 362.1 MB, free: 80.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003194/0.213, allocations: 251.7 kB / 362.4 MB, free: 80.52 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.317e-05/0.213, allocations: 51.05 kB / 362.4 MB, free: 80.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003431/0.2165, allocations: 17.35 MB / 379.7 MB, free: 63.6 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2165, allocations: 3.188 kB / 379.8 MB, free: 63.6 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001414/0.2179, allocations: 1.478 MB / 381.2 MB, free: 63.12 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004734/0.2184, allocations: 464 kB / 381.7 MB, free: 62.92 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002256/0.2186, allocations: 17.19 kB / 381.7 MB, free: 62.92 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004424/0.219, allocations: 56.3 kB / 381.8 MB, free: 62.92 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/0.2193, allocations: 143.3 kB / 381.9 MB, free: 62.92 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.669e-05/0.2193, allocations: 44.47 kB / 381.9 MB, free: 62.92 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001026/0.2203, allocations: 1.516 MB / 383.5 MB, free: 62.7 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2203, allocations: 0 / 383.5 MB, free: 62.7 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001143/0.2215, allocations: 0.6667 MB / 384.1 MB, free: 62.7 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009885/0.2225, allocations: 0.983 MB / 385.1 MB, free: 62.56 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.2237, allocations: 2.465 MB / 387.6 MB, free: 60.69 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2237, allocations: 4.188 kB / 387.6 MB, free: 60.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007933/0.2245, allocations: 2.198 MB / 389.8 MB, free: 58.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.2255, allocations: 0.5536 MB / 390.3 MB, free: 58.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.2289, allocations: 4.317 MB / 394.6 MB, free: 54.96 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002237/0.2291, allocations: 407 kB / 395 MB, free: 54.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006365/0.2297, allocations: 396 kB / 395.4 MB, free: 54.37 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007564/0.2305, allocations: 0.7307 MB / 396.2 MB, free: 53.77 MB / 330.7 MB Notification: Performance of SimCode: time 1.463e-06/0.2305, allocations: 0 / 396.2 MB, free: 53.77 MB / 330.7 MB Notification: Performance of Templates: time 0.0442/0.2747, allocations: 45.32 MB / 441.5 MB, free: 9.414 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.9983400190249085]