Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 110.1 kB / 16.51 MB, free: 6.715 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.001079/0.001079, allocations: 190.6 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 43.67 kB / 300.1 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09234/0.09343, allocations: 49.46 MB / 349.5 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01232/0.1058, allocations: 14.06 MB / 363.6 MB, free: 6.625 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1718/0.2776, allocations: 20.51 MB / 384.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001374/0.279, allocations: 64.03 kB / 384.1 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002357/0.2814, allocations: 0.9839 MB / 385.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005861/0.2873, allocations: 1.907 MB / 387 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004621/0.2919, allocations: 1.197 MB / 388.2 MB, free: 6.691 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009791/0.3017, allocations: 6.317 MB / 394.5 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008682/0.3026, allocations: 415.7 kB / 394.9 MB, free: 4.125 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002158/0.3048, allocations: 1.029 MB / 396 MB, free: 3.703 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001183/0.306, allocations: 1.063 MB / 397 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001963/0.3062, allocations: 48.81 kB / 397.1 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004598/0.3108, allocations: 1.46 MB / 398.5 MB, free: 2.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00035/0.3112, allocations: 294.2 kB / 398.8 MB, free: 2.352 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001348/0.3126, allocations: 1.302 MB / 400.1 MB, free: 1.504 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003819/0.3164, allocations: 3.582 MB / 403.7 MB, free: 14.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3164, allocations: 0 / 403.7 MB, free: 14.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.81e-07/0.3164, allocations: 4 kB / 403.7 MB, free: 14.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.444e-05/0.3165, allocations: 0 / 403.7 MB, free: 14.97 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.0049/0.3214, allocations: 3.573 MB / 407.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.3214, allocations: 12.03 kB / 407.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.3216, allocations: 94.5 kB / 407.4 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003815/0.3219, allocations: 375.5 kB / 407.8 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003416/0.3254, allocations: 2.544 MB / 410.3 MB, free: 8.219 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.3254, allocations: 37 kB / 410.3 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.3255, allocations: 47.89 kB / 410.4 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.327, allocations: 0.7655 MB / 411.2 MB, free: 7.367 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.327, allocations: 0 / 411.2 MB, free: 7.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.265e-05/0.3271, allocations: 20 kB / 411.2 MB, free: 7.348 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.262e-05/0.3271, allocations: 19.98 kB / 411.2 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.3289, allocations: 0.8514 MB / 412.1 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004888/0.3338, allocations: 2.966 MB / 415 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001682/0.3355, allocations: 0.7987 MB / 415.8 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/0.337, allocations: 0.9526 MB / 416.8 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02846/0.3654, allocations: 30.06 MB / 446.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.3666, allocations: 0.5918 MB / 447.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.825e-06/0.3667, allocations: 0 / 447.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01212/0.3788, allocations: 5.225 MB / 452.6 MB, free: 9.422 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/0.3789, allocations: 72.39 kB / 452.7 MB, free: 9.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003355/0.3822, allocations: 2.7 MB / 455.4 MB, free: 6.625 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.762e-05/0.3823, allocations: 41.7 kB / 455.5 MB, free: 6.578 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.3834, allocations: 1.299 MB / 456.8 MB, free: 5.273 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002706/0.3837, allocations: 339.2 kB / 457.1 MB, free: 4.938 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000358/0.384, allocations: 230.3 kB / 457.3 MB, free: 4.703 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.3841, allocations: 349.9 kB / 457.7 MB, free: 4.355 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.3854, allocations: 474 kB / 458.1 MB, free: 3.891 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.3867, allocations: 0.6509 MB / 458.8 MB, free: 3.176 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00249/0.3892, allocations: 1.126 MB / 459.9 MB, free: 1.984 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.3892, allocations: 0 / 459.9 MB, free: 1.984 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003878/0.3931, allocations: 1.979 MB / 461.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.3931, allocations: 8 kB / 461.9 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001521/0.3933, allocations: 120 kB / 462 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006962/0.394, allocations: 272.8 kB / 462.3 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008755/0.3949, allocations: 201.1 kB / 462.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008514/0.4034, allocations: 13.24 MB / 475.7 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.4047, allocations: 95.95 kB / 475.8 MB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/0.4049, allocations: 56 kB / 475.8 MB, free: 0.6055 MB / 382.1 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.0007182/0.4056, allocations: 425.5 kB / 476.3 MB, free: 184 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004565/0.406, allocations: 375.7 kB / 476.6 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005015/0.4111, allocations: 2.214 MB / 478.8 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.4111, allocations: 8 kB / 478.9 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/0.4111, allocations: 4 kB / 478.9 MB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.4111, allocations: 15.91 kB / 478.9 MB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00204/0.4132, allocations: 1.543 MB / 480.4 MB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001421/0.4133, allocations: 116 kB / 480.5 MB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007257/0.4141, allocations: 135.8 kB / 480.7 MB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006455/0.4147, allocations: 264.3 kB / 480.9 MB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-05/0.4148, allocations: 43.98 kB / 481 MB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008523/0.4234, allocations: 13.24 MB / 494.2 MB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4234, allocations: 0 / 494.2 MB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005263/0.4286, allocations: 2.547 MB / 496.8 MB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000965/0.4296, allocations: 492.4 kB / 497.2 MB, free: 9.594 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005209/0.4302, allocations: 23.98 kB / 497.3 MB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.4313, allocations: 83.89 kB / 497.3 MB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003742/0.4317, allocations: 132.8 kB / 497.5 MB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.4318, allocations: 51.98 kB / 497.5 MB, free: 9.305 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00297/0.4348, allocations: 1.77 MB / 499.3 MB, free: 7.527 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4348, allocations: 0 / 499.3 MB, free: 7.527 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001706/0.4365, allocations: 0.6561 MB / 499.9 MB, free: 6.871 MB / 414.1 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.006596/0.4431, allocations: 3.818 MB / 0.492 GB, free: 2.957 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004025/0.4472, allocations: 2.518 MB / 0.4944 GB, free: 288 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4472, allocations: 0 / 0.4944 GB, free: 288 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002618/0.4498, allocations: 1.96 MB / 0.4963 GB, free: 14.17 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002885/0.4527, allocations: 0.5888 MB / 0.4969 GB, free: 13.58 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04638/0.4991, allocations: 23.09 MB / 0.5195 GB, free: 4.551 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/0.5002, allocations: 1.658 MB / 0.5211 GB, free: 2.863 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001494/0.5017, allocations: 391.3 kB / 0.5215 GB, free: 2.477 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/0.5028, allocations: 1.194 MB / 0.5226 GB, free: 1.281 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5029, allocations: 0 / 0.5226 GB, free: 1.281 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2272/0.7301, allocations: 64.04 MB / 0.5852 GB, free: 107.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001294/0.7303, allocations: 218.4 kB / 0.5854 GB, free: 107 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.917/4.648, allocations: 0 / 0.5854 GB, free: 107 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches