Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001549/0.001549, allocations: 112.4 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001975/0.001975, allocations: 204.9 kB / 21.46 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 230.2 MB / 254.5 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] 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.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 67.89 kB / 373.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1175, allocations: 53.31 MB / 426.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004484/0.122, allocations: 2.952 MB / 429.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.1235, allocations: 0.7985 MB / 430.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.1236, allocations: 4 kB / 430.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000167/0.1238, allocations: 47.5 kB / 430.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001973/0.1239, allocations: 103.1 kB / 430.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003559/0.1243, allocations: 119.7 kB / 430.7 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004666/0.1248, allocations: 414.3 kB / 431.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000222/0.125, allocations: 95.2 kB / 431.2 MB, free: 484 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002551/0.1252, allocations: 155.4 kB / 431.3 MB, free: 328 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.1255, allocations: 167.2 kB / 431.5 MB, free: 160 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.42e-05/0.1255, allocations: 36 kB / 431.5 MB, free: 124 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.773e-05/0.1256, allocations: 44 kB / 431.6 MB, free: 80 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.37e-05/0.1257, allocations: 71.77 kB / 431.7 MB, free: 8 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2177/0.3434, allocations: 175.4 kB / 431.8 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007841/0.3442, allocations: 445 kB / 432.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3442, allocations: 0 / 432.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.3442, allocations: 0.5312 kB / 432.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.3442, allocations: 0.5625 kB / 432.3 MB, free: 7.902 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001126/0.3454, allocations: 0.6325 MB / 432.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/0.3454, allocations: 10.28 kB / 432.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.502e-05/0.3455, allocations: 61.05 kB / 433 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001909/0.3457, allocations: 47.17 kB / 433 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004376/0.3461, allocations: 293.3 kB / 433.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.3461, allocations: 19.69 kB / 433.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.981e-05/0.3462, allocations: 23.34 kB / 433.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004761/0.3467, allocations: 296.5 kB / 433.6 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.3467, allocations: 0 / 433.6 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.683e-05/0.3467, allocations: 12.09 kB / 433.6 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.3467, allocations: 5.5 kB / 433.6 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000365/0.3471, allocations: 210.1 kB / 433.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.3486, allocations: 1.145 MB / 435 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005107/0.3491, allocations: 210.7 kB / 435.2 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003084/0.3494, allocations: 119.4 kB / 435.3 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.3494, allocations: 2.312 kB / 435.3 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002928/0.3497, allocations: 175.8 kB / 435.5 MB, free: 6.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.373e-06/0.3497, allocations: 0 / 435.5 MB, free: 6.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001317/0.351, allocations: 0.5076 MB / 436 MB, free: 6.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.296e-05/0.3511, allocations: 137.8 kB / 436.1 MB, free: 6.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002513/0.3513, allocations: 249.4 kB / 436.4 MB, free: 5.965 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.3513, allocations: 31.48 kB / 436.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.76e-05/0.3514, allocations: 174 kB / 436.6 MB, free: 5.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.094e-05/0.3515, allocations: 67.73 kB / 436.6 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.531e-05/0.3516, allocations: 58.28 kB / 436.7 MB, free: 5.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.294e-05/0.3516, allocations: 333.7 kB / 437 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.3518, allocations: 68.8 kB / 437.1 MB, free: 5.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/0.352, allocations: 133 kB / 437.2 MB, free: 5.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.3522, allocations: 164.3 kB / 437.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.3522, allocations: 0 / 437.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004637/0.3527, allocations: 297.7 kB / 437.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.3527, allocations: 5.594 kB / 437.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.3527, allocations: 1.125 kB / 437.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003324/0.3531, allocations: 89.2 kB / 437.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.3532, allocations: 30.16 kB / 437.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00193/0.3552, allocations: 2.142 MB / 439.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002242/0.3554, allocations: 33.75 kB / 440 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.3554, allocations: 5.656 kB / 440 MB, free: 3.609 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001519/0.3556, allocations: 152 kB / 440.1 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.331e-05/0.3556, allocations: 34.08 kB / 440.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.712e-05/0.3557, allocations: 35.92 kB / 440.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.3557, allocations: 2.281 kB / 440.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.3557, allocations: 1 kB / 440.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.3557, allocations: 2.531 kB / 440.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009125/0.3566, allocations: 0.764 MB / 441 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.3566, allocations: 0 / 441 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.3567, allocations: 23.72 kB / 441 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002411/0.3569, allocations: 89.48 kB / 441.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.836e-05/0.357, allocations: 7.984 kB / 441.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00192/0.3589, allocations: 2.152 MB / 443.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3589, allocations: 4 kB / 443.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006619/0.3595, allocations: 445.8 kB / 443.7 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.3597, allocations: 132.8 kB / 443.8 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.924e-05/0.3597, allocations: 6.312 kB / 443.8 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.3599, allocations: 18.3 kB / 443.8 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.36, allocations: 37.53 kB / 443.9 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.36, allocations: 9.094 kB / 443.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001765/0.3602, allocations: 174.6 kB / 444 MB, free: 456 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3602, allocations: 0 / 444 MB, free: 456 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004751/0.3607, allocations: 89.39 kB / 444.1 MB, free: 440 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001009/0.3617, allocations: 0.9936 MB / 445.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007325/0.3624, allocations: 345.4 kB / 445.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3624, allocations: 4.062 kB / 445.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004196/0.3628, allocations: 250.7 kB / 445.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004549/0.3633, allocations: 62.91 kB / 445.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004402/0.3677, allocations: 2.769 MB / 448.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004989/0.3682, allocations: 0.7695 MB / 449.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001186/0.3683, allocations: 24.91 kB / 449.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.3684, allocations: 82.67 kB / 449.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3684, allocations: 0 / 449.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05176/0.4202, allocations: 7.644 MB / 457.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.33, allocations: 6.875 kB / 457.1 MB, free: 10.93 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --stepSize=0.00039604 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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: 14.924223638605326]