Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001463/0.001463, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001845/0.001845, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.73 kB / 307 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0958/0.09709, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.201/0.2981, allocations: 14.18 MB / 371.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02241/0.3206, allocations: 20.35 MB / 392.1 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002334/0.3229, allocations: 61.34 kB / 392.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003158/0.3262, allocations: 1.132 MB / 393.3 MB, free: 216 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01068/0.3369, allocations: 2.277 MB / 395.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00665/0.3435, allocations: 1.439 MB / 397 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0125/0.3561, allocations: 6.47 MB / 403.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009211/0.357, allocations: 438.6 kB / 403.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002349/0.3594, allocations: 1.052 MB / 405 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001849/0.3613, allocations: 1.086 MB / 406.1 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002146/0.3615, allocations: 74.28 kB / 406.1 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005554/0.367, allocations: 1.476 MB / 407.6 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005946/0.3677, allocations: 327.6 kB / 407.9 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002262/0.3699, allocations: 1.325 MB / 409.2 MB, free: 7.734 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006179/0.3761, allocations: 3.666 MB / 412.9 MB, free: 4.055 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.3762, allocations: 0 / 412.9 MB, free: 4.055 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3762, allocations: 0 / 412.9 MB, free: 4.055 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.101e-05/0.3762, allocations: 0 / 412.9 MB, free: 4.055 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.005024/0.3813, allocations: 3.561 MB / 416.5 MB, free: 432 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.76e-05/0.3813, allocations: 16.03 kB / 416.5 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001174/0.3815, allocations: 90.52 kB / 416.6 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004278/0.3819, allocations: 383.6 kB / 417 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00351/0.3854, allocations: 2.54 MB / 419.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.3855, allocations: 40.94 kB / 419.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.3856, allocations: 44 kB / 419.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.387, allocations: 0.7586 MB / 420.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.387, allocations: 0 / 420.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.882e-05/0.3871, allocations: 20 kB / 420.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.226e-05/0.3871, allocations: 19.98 kB / 420.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.3888, allocations: 0.8553 MB / 421.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00476/0.3936, allocations: 2.974 MB / 424.2 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/0.3953, allocations: 0.796 MB / 425 MB, free: 7.703 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/0.3967, allocations: 0.9486 MB / 425.9 MB, free: 6.758 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02836/0.425, allocations: 30.7 MB / 456.6 MB, free: 3.812 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/0.4262, allocations: 0.5911 MB / 457.2 MB, free: 3.215 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.855e-06/0.4262, allocations: 3.938 kB / 457.2 MB, free: 3.211 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01208/0.4383, allocations: 5.231 MB / 462.5 MB, free: 13.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/0.4383, allocations: 68.41 kB / 462.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003015/0.4414, allocations: 2.692 MB / 465.2 MB, free: 10.94 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.828e-05/0.4415, allocations: 45.7 kB / 465.3 MB, free: 10.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009974/0.4425, allocations: 1.299 MB / 466.6 MB, free: 9.582 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002596/0.4427, allocations: 339.2 kB / 466.9 MB, free: 9.246 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003284/0.4431, allocations: 238.2 kB / 467.1 MB, free: 9.008 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.4432, allocations: 349.9 kB / 467.5 MB, free: 8.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.4444, allocations: 474 kB / 467.9 MB, free: 8.195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001339/0.4458, allocations: 0.6543 MB / 468.6 MB, free: 7.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002466/0.4483, allocations: 1.126 MB / 469.7 MB, free: 6.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4483, allocations: 4 kB / 469.7 MB, free: 6.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00375/0.452, allocations: 1.976 MB / 471.7 MB, free: 4.234 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.4521, allocations: 10.97 kB / 471.7 MB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001449/0.4522, allocations: 116.5 kB / 471.8 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006019/0.4528, allocations: 268.4 kB / 472.1 MB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008144/0.4537, allocations: 203.6 kB / 472.3 MB, free: 3.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0082/0.4619, allocations: 14.24 MB / 486.5 MB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.4632, allocations: 91.95 kB / 486.6 MB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.4634, allocations: 56 kB / 486.7 MB, free: 3.84 MB / 398.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.0007306/0.4641, allocations: 429.6 kB / 487.1 MB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003919/0.4645, allocations: 367.5 kB / 487.4 MB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004773/0.4693, allocations: 2.221 MB / 489.7 MB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.4693, allocations: 11.98 kB / 489.7 MB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.4693, allocations: 4 kB / 489.7 MB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.4693, allocations: 3.984 kB / 489.7 MB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001747/0.4711, allocations: 1.543 MB / 491.2 MB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001376/0.4712, allocations: 120 kB / 491.3 MB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006707/0.4719, allocations: 135.8 kB / 491.5 MB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005668/0.4725, allocations: 260.3 kB / 491.7 MB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.243e-05/0.4726, allocations: 43.98 kB / 491.8 MB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008106/0.4807, allocations: 14.25 MB / 0.4942 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4807, allocations: 0 / 0.4942 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004987/0.4857, allocations: 2.547 MB / 0.4967 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007466/0.4865, allocations: 492.5 kB / 0.4971 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002857/0.4868, allocations: 20 kB / 0.4971 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008973/0.4877, allocations: 79.89 kB / 0.4972 GB, free: 11.67 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003058/0.488, allocations: 144.8 kB / 0.4974 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.789e-05/0.4881, allocations: 47.98 kB / 0.4974 GB, free: 11.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00202/0.4901, allocations: 1.774 MB / 0.4991 GB, free: 9.699 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4901, allocations: 0 / 0.4991 GB, free: 9.699 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001319/0.4915, allocations: 0.6523 MB / 0.4998 GB, free: 9.047 MB / 430.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.005952/0.4974, allocations: 3.818 MB / 0.5035 GB, free: 5.125 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004078/0.5015, allocations: 2.546 MB / 0.506 GB, free: 2.43 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5015, allocations: 0 / 0.506 GB, free: 2.43 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002348/0.5039, allocations: 1.956 MB / 0.5079 GB, free: 328 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002265/0.5062, allocations: 0.6296 MB / 0.5085 GB, free: 15.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1956/0.7018, allocations: 22.41 MB / 0.5304 GB, free: 143.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001349/0.7032, allocations: 1.659 MB / 0.532 GB, free: 142.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001783/0.705, allocations: 393.2 kB / 0.5324 GB, free: 142.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001199/0.7062, allocations: 1.201 MB / 0.5336 GB, free: 142 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7062, allocations: 3.828 kB / 0.5336 GB, free: 142 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1221/0.8283, allocations: 65.95 MB / 0.598 GB, free: 89.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.55, allocations: 3.984 kB / 0.598 GB, free: 89.38 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches